function selecturl(s) {
	var gourl = s.options[s.selectedIndex].value;	window.top.location.href = gourl;
}


function hideAllDivs() {
	document.getElementById('rozmiary Sansha Tutto Nero').style.display='none';
	
}
function show_sansha_rozmiary() {
	hideAllDivs();
	document.getElementById('rozmiary Sansha Tutto Nero').style.display='block';
}
function show_lista_nowosci() {
		document.getElementById('lista_nowosci').style.display='block';
		document.getElementById('a').style.display='none';
}
function hide_lista_nowosci() {
		document.getElementById('lista_nowosci').style.display='none';
		document.getElementById('a').style.display='block';
}
function insertSWF(nazwa, width, height, name){
	var newObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="'+name+'"><param name="movie" value="'+nazwa+'"><param name="wmode" value="transparent"><param name="menu" value="false"><param name="quality" value="high"><param name="loop" value="false" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><embed src="'+nazwa+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale="noscale" salign="lt" width="'+width+'" height="'+height+'" wmode="transparent" menu="false" name="'+name+'"></embed></object>';
	document.write(newObject);
}
function show() {

	document.getElementById('koszty').style.display='block';
}
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=1,menubar=no,left=20,top=20' );
}
function newWindow(width,height,filename,target,p) {
	var winWidth = (screen.width - width) / 2;
	var winHeight = (screen.height - height) / 2;
	if (!target) {
		target = 'colgatenewwindow';
	}
	if (p) {
		winprops = 'width='+width+',height='+height+',top='+winHeight+',left='+winWidth;
	} else {
		winprops = 'width='+width+',height='+height+',top='+winHeight+',left='+winWidth+',scrollbars=1';
	}
	window.open(filename,target,winprops);
}

function txtSize( iSize ){
  var aSizes = Array( '0.917em', '', '1.333em' );
  var aChange = Array( 'pageDescription', 'h5', 'productDescription' );
  var aSizesDefault = Array( '1.083em', '1em', '1.08em' );
  for( var i = 0; i < aChange.length; i++ ){
    if( !aSizes[iSize] )
      iSize = 1;
    if( gEBI( aChange[i] ) ){
      gEBI( aChange[i] ).style.fontSize = ( iSize != 1 ) ? aSizes[iSize] : aSizesDefault[i];
    }
    else if( gEBI( 'content' ).getElementsByTagName( aChange[i] ) ){
      aH5 = gEBI( 'content' ).getElementsByTagName( aChange[i] );
      for( var j = 0; j < aH5.length; j++ ){
        aH5[j].style.fontSize =  ( iSize != 1 ) ? aSizes[iSize] : aSizesDefault[i];
      }
    }
  }
}
