var bo_ns_id = 0;
var spotFixed = false;
var shopSURL = 'https://b2c.baby-center.si'

//newScript = document.createElement("<script src='http://www.videomy.com/vmvsrc/showpro.php?videoid=35361c3c6970e52bd49d18f7a811997e' type='text/javascript'></script>")
    //document.write(newScript);


 	

      




function startIeFix(){
	if(isIE()){
		document.write('<noscript id="bo_ns_id_' + bo_ns_id + '">');
	}


	

}

function endIeFix(){
	if(isIE()){
		var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
		var theNoScript = theObject.innerHTML;
		document.write(theNoScript);
	}

	
	ie6bannerfix();
	
}


function isIE(){
	var strBrowser = navigator.userAgent.toLowerCase();
	if(strBrowser.indexOf("msie") > -1 && strBrowser.indexOf("mac") < 0){
		return true;
	}else{
		return false;
	}
}

function ie6bannerfix()
{	
	var ie6banner_fix = document.getElementById("Object1");

	var i6Embed = document.getElementById("Banner1_portalBanner_flaEmbed");
i6Embed.setAttribute("AllowScriptAccess","always");

	//alert(i6Embed);

	if ((ie6banner_fix == null) || (ie6banner_fix == "undefined"))
		return;

	

	ie6banner_fix.width = 734;
	ie6banner_fix.height = 88;

	ie6banner_fix.style.width = "734px";
	ie6banner_fix.style.height = "88px";

	

	ie6banner_fix.innerHTML = "<param NAME=\"AllowScriptAccess\" VALUE=\"always\">" + ie6banner_fix.innerHTML;
	

	return;
	
	var div_Banner = document.createElement("div");


	div_Banner.Id			= "divBanner";
	div_Banner.style.position	= "relative";
	div_Banner.style.zIndex		= 99999;

	div_Banner.style.left		= "0px" ;

	div_Banner.style.top		= "0px" ;

	div_Banner.style.width 		= "734px" ;

	div_Banner.style.height 	= "10px" ;
	div_Banner.style.backgroundColor= "#c7ebfb";

	div_Banner.onclick = function() {BannnerClick();}

	
	
	document.getElementById("Banner1_portalBanner_tbBanner").parentNode.insertBefore(div_Banner);
	
	
	
	
	
}

// get element position
function getElementPosition(obj) {
	try
	{
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}

		return [parseFloat(curleft),parseFloat(curtop)];
	}
	catch(ex){}
}


function getElementDimension(elemid)
{
	if (elemid == null)
		return;

	if (typeof(elemid) == "object")
		var elem = elemid;
	else
		var elem = document.getElementById(elemid);
	
	if (elem != null)
		return [parseFloat(elem.offsetWidth),parseFloat(elem.offsetHeight)];
	else
		return [0, 0];
}

// get element poisiton
function GetElementPos(elem)
{
	if (typeof(elem) != "object")
		elem = document.getElementById(elem);

	return findNodePos(elem);
}

// return root position of node
function findNodePos(obj) {
	try
	{
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
				curtop += obj.offsetTop
			}
		}

		return [parseFloat(curleft),parseFloat(curtop)];
	}
	catch(ex){}
}

if (window.location.toString() == "http://portal.baby-center.si/PortalSLO/DesktopDefault.aspx?tabindex=0&tabid=731")
	window.location = "http://portal.baby-center.si/PortalSLO/DesktopDefault.aspx?tabindex=8&tabid=912";




function setBannerLink()
{

	var testLink = document.getElementById('Banner_Hyperlink8');
	
	

   	
        testLink.href = 'http://portal.baby-center.si/PortalSLO/DesktopDefault.aspx?tabindex=1&tabid=278';


var testLink1 = document.getElementById('Banner_Hyperlink7');
	
	

   	
        testLink1.href = 'http://portal.baby-center.si/PortalSLO/DesktopDefault.aspx?tabindex=7&tabid=912';
}


function setBannerSizeOverride()
{

	var param1 = document.getElementById('_ctl11_flaEmbed');

	if (param1 != null)
	{
		param1.setAttribute('width', 170);
		param1.setAttribute('height', 400);
	}

	var param2 = document.getElementById('_ctl11_flaParam');

	if (param2 != null)
	{
		param2.setAttribute('width', 170);
		param2.setAttribute('height', 400);
	}

}


function onLoadDelay()
{
	var testParam1 = document.getElementById('_ctl11_flaParam');

	

	spotFixed = false;
	window.setTimeout('ie6bannerfix();', 500);
	window.setTimeout('CommercialSpotFix();', 1000);
	window.setTimeout('setBannerLink();',300);
	window.setTimeout('setBannerSizeOverride()',500);
	
	
}
document.onLoad = onLoadDelay();
function CommercialSpotFix()
{
	//if (getquerySt("DEBUG") == "TRUE")
	//{
	//try
	//{
	//if (spotFixed == false)
	//{
		var url = window.location.href;
		url = url.substring(0,url.indexOf("/", 10));

		var aRequest = new System.Net.Ajax.Request("GET", url + "/Shop/Spot.asp", CommercialSpotFix_callback, true);			
		var aPageRequest = new System.Net.Ajax.PageRequests(aRequest);
		var aConnection = new System.Net.Ajax.Connection(aPageRequest);
            	aConnection.Open();
	//}
	//} catch (ex) {};
	//}
}

function CommercialSpotFix_callback(src)
{
	if(src.Complete)
	{	


		var tdSpots = document.getElementById("_ctl11_TableCell2");

		if (tdSpots == null)
			tdSpots = document.getElementById("_ctl10_TableCell2");

		if (tdSpots == null)
			tdSpots = document.getElementById("_ctl11_TableCell2");

		if (tdSpots == null)
		{
			setTimeout("CommercialSpotFix();", 400);
			return;
		}

		tdSpots.innerHTML = src.ResponseText;
		//tdSpots.style.rbound = "AS";
	}
}

function removeChildNodes(ctrl)
{
	while (ctrl.childNodes[0])
	{
		ctrl.removeChild(ctrl.childNodes[0]);
	}
}

function getquerySt(ji)
{
	hu = window.location.search.substring(1);
	gy = hu.split("&");

	for (i=0;i<gy.length;i++) 
	{
		ft = gy[i].split("=");

		if (ft[0] == ji) 
		{
			return ft[1];
		}
	}
}

/* Copyright 2007 Codevendor.com */
// For registering namespaces
var Namespace = {
    
    Register : function(_Name)
    {
        var o = window;
        var x = false;
        for (var a = _Name.split("."); a.length > 0;)
        {
            var s = a.shift();
            if(a.length==0){ if(o[s]){x=true;} }
            if(!o[s]){o[s]={};}
            o = o[s];
        }
        
        if(x){ return 1; }
    }
}
//Create Namespaces----------------------------------------
Namespace.Register("System.Net.Ajax");
//---------------------------------------------------------
//Enumeration-----------------
System.Net.Ajax.RequestMethod = { Get:"GET", Post:"POST" };
//----------------------------
//Handles page requests in a collection----------------
System.Net.Ajax.PageRequests = function(){ return {
    Requests : null,
    
    //Gets the type of object---------------------------------------------
    GetType : function(){ return "System.Net.Ajax.PageRequests"; },
    //--------------------------------------------------------------------
    
    //Initializer---------------------------------------------------------
    Init : function()
    {
        this.Requests = new Array();
        if(arguments[0].length==1){ this.Requests.push(arguments[0][0]); }
        return this; 
    },
    //--------------------------------------------------------------------
    
    //Adds Requests to the collection
    AddRequest : function()
    {
        if(arguments.length==0 || arguments[0].GetType()!=
"System.Net.Ajax.Request"){ return; }
        this.Requests.push(arguments[0]);            
    }
    
}.Init(arguments);}
//Single Page Request
System.Net.Ajax.Request = function(){ return {
    Method : null,
    URL : null,
    Params : null,
    Callback : null,
    Async : false,
    UserObject : null,
    
    //Gets the type of object---------------------------------------------
    GetType : function(){ return "System.Net.Ajax.Request"; },
    //--------------------------------------------------------------------
    
    //Initializer---------------------------------------------------------
    Init : function()
    {
        switch(arguments[0].length)
        {
            case 1 : this.Method = arguments[0][0]; 
                     break;
            case 2 : this.Method = arguments[0][0]; 
                     this.URL = arguments[0][1]; 
                     break;
            case 3 : this.Method = arguments[0][0]; 
                     this.URL = arguments[0][1]; 
                     this.Callback = arguments[0][2]; 
                     break;
            case 4 : this.Method = arguments[0][0]; 
                     this.URL = arguments[0][1]; 
                     this.Callback = arguments[0][2]; 
                     this.Async = arguments[0][3]; 
                     break;
            case 5 : this.Method = arguments[0][0]; 
                     this.URL = arguments[0][1]; 
                     this.Callback = arguments[0][2]; 
                     this.Async = arguments[0][3]; 
                     this.UserObject = arguments[0][4]; 
                     break;
        }
        
        this.Params = new Array();
        return this; 
    },
    //--------------------------------------------------------------------
    
    //Adds Parameters to the parameter array collection
    AddParam : function()
    {
        switch(arguments.length)
        {
            case 1 : this.Params.push(arguments[0]); break;
            case 2 : this.Params.push(new 
              System.Net.Ajax.Parameter(arguments[0], arguments[1])); break;
        }
    }
    
}.Init(arguments);}
//Page Request Parameter Object
System.Net.Ajax.Parameter = function(){ return {
    Name : null,
    Value : null,
    //Gets the type of object---------------------------------------------
    GetType : function(){ return "System.Net.Ajax.Parameter"; },
    //--------------------------------------------------------------------
    
    //Initializer---------------------------------------------------------
    Init : function()
    { 
        if(arguments[0].length==2){ this.Name = arguments[0][0]; 
                                    this.Value = arguments[0][1]; }
        return this; 
    }
    //--------------------------------------------------------------------
}.Init(arguments);}
System.Net.Ajax.ActiveObject = 0; //For knowing what type of active X object.
//For handling ajax connections
System.Net.Ajax.Connection = function(){ return {
    
    ActiveXObject : null,
    PageRequests : null,
    Current : null,
    
    //Gets the type of object---------------------------------------------
    GetType : function(){ return "System.Net.Ajax.Connection"; },
    //--------------------------------------------------------------------
    
    //Initializer---------------------------------------------------------
    Init : function()
    { 
        if(arguments[0].length==1){ this.PageRequests = arguments[0][0]; }
        return this; 
    },
    //--------------------------------------------------------------------
    
    //Creates the active x object for use
    Create : function()
    {
        switch(System.Net.Ajax.ActiveObject)
        {
            case 0:
                if(window.ActiveXObject)
                {
                    try 
                    { 
                        System.Net.Ajax.ActiveObject = 2;
                        return new ActiveXObject("Msxml2.XMLHTTP");        
                    } 
                    catch(e) 
                    {  
                        System.Net.Ajax.ActiveObject = 3;
                        return new ActiveXObject("Microsoft.XMLHTTP");
                    }
                }
                else
                {
                    if(window.XMLHttpRequest)
                    {
                        System.Net.Ajax.ActiveObject = 1;
                        return new XMLHttpRequest();
                    }
                }
            
            case 1: return new XMLHttpRequest();           
            case 2: return new ActiveXObject("Msxml2.XMLHTTP");           
            case 3: return new ActiveXObject("Microsoft.XMLHTTP");
            default: break;
        }
        
        //No Ajax Object Found-----------
        System.Net.Ajax.ActiveObject = -1;
        throw "Missing a required ajax object.";
        return false;
        //-------------------------------
    },
    
    Open : function()
    {
        //Check if page requests has something------
        if(this.PageRequests==null){ return; }
        //------------------------------------------
        
        //Create Variables--------------------------
        var obj = this;
        var Data = "";
        //------------------------------------------
        
        //Create ActiveX----------------------------
        this.ActiveXObject = this.Create();
        //------------------------------------------
        
        //Get Request-------------------------------
        this.Current = this.PageRequests.Requests.shift();
        //------------------------------------------
        
        //Open Connection---------------------------
        this.ActiveXObject.open(this.Current.Method, this.Current.URL, 
                                this.Current.Async);
        //------------------------------------------
        
        //Create ActiveX Callback-------------------
        this.ActiveXObject.onreadystatechange = function() 
        {obj.OnReadyStateChange();}
        //------------------------------------------
        
        //Open Ajax Request---------------------------------------------------
        if(this.Current.Method=="POST")
        {
            this.ActiveXObject.setRequestHeader("Content-type", 
                                         "application/x-www-form-urlencoded");
               
            if(this.Current.Params!=null && this.Current.Params.length!=0)
            {
                for(var Param in this.Current.Params) 
                {
                    Data += (Data=="") ? this.Current.Params[Param].Name +
                         "=" + this.Current.Params[Param].Value : "&" +
                         this.Current.Params[Param].Name + "=" +
                         this.Current.Params[Param].Value;
                }
            }
            this.ActiveXObject.send(encodeURI(Data));
        }
        else
        {
			try {
				this.ActiveXObject.send(null);
            } catch(ex) {
            
            }
        }
        //--------------------------------------------------------------------
    },
    
    //ActiveXObject callback
    OnReadyStateChange : function()
    {
		try {
			//Get Ajax objects for return-----------------
			var r = {};
			r.ReadyState = this.ActiveXObject.readyState;
			r.ResponseText = (this.ActiveXObject.readyState==4)?
										this.ActiveXObject.responseText:null;
			r.Status = (this.ActiveXObject.readyState==4)?
										this.ActiveXObject.status:null;
			r.URL = this.Current.URL;
			r.UserObject = this.Current.UserObject;
			r.Complete = (this.ActiveXObject.readyState==4 && 
						this.PageRequests.Requests.length==0) ? true : false;
			//--------------------------------------------
	        
			//Call Callback Method---------------
			if(this.Current.Callback!=null){this.Current.Callback(r);}
			//-----------------------------------
	        
			//Loop For Many URLS
			if(this.ActiveXObject.readyState==4)
			{ 
				if(r.Complete){ this.PageRequests=null; this.ActiveXObject.abort();
								this.Current=null; }
				else{ this.Open();}
			}
		} catch(ex) {
			
		}
    }
      
}.Init(arguments);}

/*

Kiberpipa - Letos mineva natanko 30 let, odkar je podjetje Intel predstavilo mikroprocesor 8086, ki predstavlja prvi mikroprocesor t. i. x86 arhitekture. Ta arhitektura (poenostavljeno lahko rečemo, da je arhitektura procesorja njegova zasnova in zgradba) povsem prevladuje na tržišču osebnih računalnikov, uporablja pa se na praktično vseh področjih. Podjetje IBM je leta 1981 izdelalo osebni računalnik IBM PC (model 5150), v katerega so vgradili Intelov mikroprocesor 8088, zasnovan na 8086, in s tem pričeli dobo x86 arhitekture v osebnem računalništvu.

*/