<!--
function changeImage(strId,strPath,strImage)
{
	document.images[strId].src = strPath + '/' + strImage
}

function divHide(div_id) {
	if (is.ie4) {
		if(document.all[div_id]) {
			document.all[div_id].style.visibility = "hidden";
		}
	} else {
		if(document.getElementById(div_id)) {
			document.getElementById(div_id).style.visibility = "hidden";
		}
	}
}

function divShow(div_id) {
	if(is.ie4) {
		if(document.all[div_id]) {
			document.all[div_id].style.visibility = "visible";
		}
	} else {
		if(document.getElementById(div_id)) {
			document.getElementById(div_id).style.visibility = "visible";
		}
	}
}

function fade(id,i) {

	if((opacity[id]>=0)&&(opacity[id]<=0.95)) {
		opacity[id]+=i;
	} else if(opacity[id]<0) {
		opacity[id]=0;
		clearInterval(tid[id]);
		divHide(id);
	} else if(opacity[id]>0.95) {
		opacity[id]=0.95;
		clearInterval(tid[id]);
	}
	
	if(is.moz) {
		if(document.getElementById(id)) {
			document.getElementById(id).style.MozOpacity=opacity[id];
		}
	} else if(is.ie5||is.ie6) {
		if(document.getElementById(id)) {
			document.getElementById(id).filters.alpha.opacity=opacity[id]*100;
		}
	}
}

function fadeIn(id) {

	divShow('menu-sponsor-trigger');
	divShow('menu-sponsor-trigger-bottom');
	divHide('banner-bottom');
	divHide('iwh_pulldown_menu');
	divHide('iwh_pulldown_menu2');
	divHide('iwh_pulldown_menu3');
	divHide('iwh_pulldown_menu4');
	divHide('iwh_pulldown_menu5');
	
	if((MenuOpenId!=id)&&(MenuOpenId!=null)) {
		fadeOut(MenuOpenId);
		MenuOpenId=null;
	}
	
	if(MenuOpenId!=id) {

		divShow(id);

	
		if(MenuEffect=='basic') {
			
			if(is.moz) {
				document.getElementById(id).style.MozOpacity=0.95;
			} else if((is.ie5||is.ie6)&&(document.getElementById(id).filters)) {
				document.getElementById(id).filters.alpha.opacity=95;
			}
			divShow(id);	
			
		} else if((MenuEffect=='fade')&&(is.ie5||is.ie6||is.moz)) {
		
			if(is.moz) {
				document.getElementById(id).style.MozOpacity=0;
			} else if((is.ie5||is.ie6)&&(document.getElementById(id).filters)) {
				document.getElementById(id).filters.alpha.opacity=0;
			}	
		
			divShow(id);
				
			clearInterval(tid[id]);
			opacity[id]=0;
			tid[id]=setInterval("fade('"+id+"',0.15)",20)
			
		} else {
			//-- MenuEffect=nopacity 
			divShow(id);
		}
		
		
		MenuOpenId=id;
	}
}

function fadeOut(id) {

	divHide('menu-sponsor-trigger');
	divHide('menu-sponsor-trigger-bottom');
	divShow('banner-bottom');
	divShow('iwh_pulldown_menu');
	divShow('iwh_pulldown_menu2');
	divShow('iwh_pulldown_menu3');
	divShow('iwh_pulldown_menu4');
	divShow('iwh_pulldown_menu5');
		
	if((id==null)&&(MenuOpenId!=null)) {
		fadeOut(MenuOpenId);

	} else if(id!=null) {

		if((MenuEffect=="fade")&&(is.ie5||is.ie6||is.moz)) {
			clearInterval(tid[id]);
			tid[id]=setInterval("fade('"+id+"',-0.15)",20);
		} else {
			divHide(id);
		}
			
		MenuOpenId=null;
	}
}

function insertImage(strinsertImagepath)
{
	var linktarget = '';

	if (document.forms[0].image.options[document.forms[0].image.selectedIndex].value != '' )
	{
		window.opener.str = strinsertImagepath + '/' + document.forms[0].image.options[document.forms[0].image.selectedIndex].value;
		window.opener.alignment = document.forms[0].alignment.options[document.forms[0].alignment.selectedIndex].value;

		for (var i = 0; i < document.forms[0].linktarget.length; i++)
		{
			if (document.forms[0].linktarget[i].checked)
				linktarget = document.forms[0].linktarget[i].value;
		}

		if (document.forms[0].linkurl.value != 'http://')
		{
			window.opener.linkurl = document.forms[0].linkurl.value;
			window.opener.linktarget = linktarget;
		}
		window.opener.insertImage();
	}
	window.close();
}

function newVarWindow(file,window,resize,width,height,scrollbars) {
    msgwindow = open(file,window,'resizable=' + resize + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbars);
    if (msgwindow.opener == null) msgwindow.opener = self;
}

function SponsorPopup(strName, intId, strUrl, strContent, strPicType, strLogoType) {
	var SponsorPopupHtml = "<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='800' HEIGHT='325'><TR><TD ALIGN='center' VALIGN='middle'><TABLE CLASS='sponsor-popup' BORDER='0' CELLPADDING='10' CELLSPACING='0' WIDTH='480' HEIGHT='325'><TR><TD ALIGN='center' VALIGN='middle'><TABLE CLASS='sponsor-popup' BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='480' HEIGHT='305'><TR><TD COLSPAN='2' ALIGN='right' HEIGHT='40'><A HREF='"+strUrl+"' TARGET='"+intId+"'><IMG SRC='"+UrlSponsorImages+"sponsor_"+intId+"_logo."+strLogoType+"' ALT='"+strName+"' HEIGHT='35' WIDTH='300' BORDER='0'></A></TR><TR><TD COLSPAN='2' HEIGHT='25' VALIGN='TOP'><HR ALIGN='CENTER' COLOR='000000' WIDTH='100%' HEIGHT='1'></TD></TR><TR><TD  WIDTH='140' HEIGHT='240' ALIGN='LEFT' VALIGN='TOP'><A HREF='"+strUrl+"' TARGET='"+intId+"'><IMG SRC='"+UrlSponsorImages+"sponsor_"+intId+"_pic."+strPicType+"' ALT='"+strName+"' WIDTH='120' HEIGHT='180' BORDER='0'></A></TD><TD WIDTH='340' HEIGHT='240' ALIGN='LEFT' VALIGN='TOP'>"+strContent+"</TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE>";
	document.getElementById('menu-sponsor').innerHTML = SponsorPopupHtml;
}

function SponsorPopupSelect(strName, intId, strUrl, strContent, strPicType, strLogoType)
{
	SponsorPopup(strName, intId, strUrl, strContent, strPicType, strLogoType);
	
	//-- CHECK POSTITION OF GETPOS IMAGE!!
	var getpos_top = document.getElementById('getpos').offsetTop;
	var getpos_left = document.getElementById('getpos').offsetLeft;
	
	//-- CHANGE POSITION OF menu-sponsor_* BASED ON GETPOS POSITION
	document.getElementById('menu-sponsor-trigger').style.top = getpos_top - 425 + "px";
	document.getElementById('menu-sponsor').style.top = getpos_top - 400 + "px";
	document.getElementById('menu-sponsor-trigger-bottom').style.top = getpos_top - 30 + "px";
	
	//-- IE ALIGNMENT PROBLEM, THATS WHY WE ALTER MOZILLA
	//-- DAMN YOU BILL GATES, GET YOUR STUFF RIGHT!
	if(is.moz)
	{
		document.getElementById('menu-sponsor').style.left = (getpos_left - 400) + "px";
		document.getElementById('menu-sponsor-trigger').style.left = 0 + "px";
		document.getElementById('menu-sponsor-trigger-bottom').style.left = 0 + "px";
	}
	else
	{
		document.getElementById('menu-sponsor').style.left = getpos_left - 400;
		document.getElementById('menu-sponsor-trigger').style.left = 0;
		document.getElementById('menu-sponsor-trigger-bottom').style.left = 0;
	}
	
	fadeIn('menu-sponsor');
}
//-->