function topdown(nav)
{
top.frames['a'].location.href = "../../nav/top.php?prim="+nav;
}
function schuhpflege(nummer, language)
{
		url = "../../shoe-db/pflege2.php?lang="+language+"&id=" + nummer;
		winname = "Schuhpflege"
		var trails = "width=475,height=580,left=10,top=10,toolbar=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes";
        newWindow = window.open( url, winname, trails);
} //-->

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=200');");
}
function openPopup(url, width, height, left, top, winname)

{

	var trails="width=" + width + ",height=" + height + ",left=" + left +",top=" + top +",toolbar=no,directories=no,status=no,scrollbars=yes,resizable=no,menubar=no";

	newWindow=window.open( url, winname, trails);



	}

function openPopupnoscroll(url, width, height, left, top, winname)

{

	var trails="width=" + width + ",height=" + height + ",left=" + left +",top=" + top +",toolbar=no,directories=no,status=no,scrollbars=no,resizable=no,menubar=no";

	newWindow=window.open( url, winname, trails);
   newWindow.focus();


	}

function changeLocation(obj)

{

document.location.href = document.formular.elements[obj].value;

}


function setOpacity(obj, opacity) {
opacity = (opacity == 100)?99.999:opacity; // IE/Win
obj.style.filter = "alpha(opacity:"+opacity+")"; // Safari<1.2, Konqueror
obj.style.KHTMLOpacity = opacity/100;  // Older Mozilla and Firefox
obj.style.MozOpacity = opacity/100; // Safari 1.2, newer Firefox and Mozilla, CSS3
obj.style.opacity = opacity/100;
}

function fadeOut(objId,opacity,speed)
{
if (document.getElementById)
{
	obj = document.getElementById(objId);
    if (opacity > 0)
    {
		opacity -= speed*3;
        if (opacity<0) opacity=0;
		setOpacity(obj, opacity);
		window.setTimeout("fadeOut('"+objId+"',"+opacity+","+speed+")", 70);
	}else{
	document.getElementById("Textblock_Inhalt").style.visibility = 'hidden';
	document.getElementById("Textblock_Back").style.visibility = 'hidden';
	}
}
}

function Text_Layer(was, an_aus)
{
if(clicked == 0)
{
if(an_aus == 'an')
	document.getElementById(was).style.visibility = 'visible';
if(an_aus == 'aus')
	document.getElementById(was).style.visibility = 'hidden';
}
}


function Text_Layer_Click(was)
{

if(clicked == 0)
{
	document.getElementById(was).style.visibility = 'visible';
	clicked = 1;
}
else
{
	document.getElementById(was).style.visibility = 'hidden';
	clicked = 0;
}
}

function get_set_size(welcher1, welcher2){
	Text_hoehe=document.getElementById(welcher1).style.height;
	alert (Text_hoehe);

	document.getElementById(welcher2).style.height = Text_hoehe;
}

function flash(url, width, height)

{
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '">');
document.write('<PARAM NAME=movie VALUE="' + url + '">');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=bgcolor VALUE=#000000>');
document.write('<param name="wmode" value="transparent"> ');
document.write('<EMBED src="' + url + '" quality=high WIDTH="' + width + '" HEIGHT="' + height + '" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
document.write('</EMBED>');
document.write('</OBJECT>');
}

function print_article(){
        if (self.print){
                self.print();
        }        else if ((navigator.appName.search("Microsoft") != -1) && (navigator.appVersion.search("4.0") != -1))
        {
                var OLECMDEXECOPT_PROMPTUSER = 1;
                var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
                document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
                WebBrowser1.ExecWB(6,1);
                WebBrowser1.outerHTML = '';
        }
}

function launchWin(url, name, width, height, otherfeatures, center)
{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 140;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;
	if(center > 0)
	{
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
	}
	else
	{
	str += ",left=218,screenX=" + xc;
    str += ",top=265,screenY=" + yc;
	}
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
    //delay a bit here because IE4 encounters errors
    //when trying to focus a recently opened window
     setTimeout('newwin.focus();',250);
  }
}

function updateCities(land) {
new Ajax.Updater('store_cities', '../../assets.lloyd.de/js/store.ajax.php?country='+land, {
  onFailure: function(){ alert('Something went wrong...') }
});
}