/* 
$$Archive: $
$$Author: $
$$Date: $
$$Revision: $
*/

function staticWindow(hrefLocation) {
	
	var strWindowName = window.location.href;    
	if(strWindowName.indexOf("&")  != -1)
	{
		var strPopupWindowName = strWindowName.substring(strWindowName.indexOf("?action=") + 8,strWindowName.indexOf("&"));
	}
	else
	{
	 	var strPopupWindowName = strWindowName.substring(strWindowName.indexOf("?action=") + 8,strWindowName.length);
	}
	 
	popup = window.open(hrefLocation, strPopupWindowName, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=700, height=520');
	popup.focus();
}

function toggleT(_w,_h) { 
if(document.getElementById) { //This for Mozilla 
if (_h=='s') eval("document.getElementById(_w).style.visibility='visible';"); 
if (_h=='h') eval("document.getElementById(_w).style.visibility='hidden';"); 
} 
if (document.all) { //is IE 
if (_h=='s') eval("document.all."+_w+".style.visibility='visible';"); 
if (_h=='h') eval("document.all."+_w+".style.visibility='hidden';"); 
} 
else { //is NS
if (_h=='s') eval("document.layers['"+_w+"'].visibility='show';"); 
if (_h=='h') eval("document.layers['"+_w+"'].visibility='hide';"); 
} 
} 

function alertSize()
{
	var intWidth = 0, intHeight = 0;
  	if( typeof( window.innerWidth ) == 'number' ) {
    	//Non-IE
    	intWidth = window.innerWidth;
    	intHeight = window.innerHeight;
  	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    	//IE 6+ in 'standards compliant mode'
    	intWidth = document.documentElement.clientWidth;
    	intHeight = document.documentElement.clientHeight;
  	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    	//IE 4 compatible
    	intWidth = document.body.clientWidth;
    	intHeight = document.body.clientHeight;
  	}
	if ((Get_Cookie("strWidthCookie") == "") ||  (Get_Cookie("strWidthCookie") == null))
	{
		if (intWidth < 1004)
		{
			alert("This site will look better in the window size of 1024 X 768 or more");
			Set_Cookie("strWidthCookie", "less", Get_ExpDate(7));
		}
	}
}

function roll_over(img_id,imgType)
{
		if(imgType=='profile')
		{
			document.getElementById(img_id).src="/images/button_PersProfile_on.gif";
		}
		else
		{
			document.getElementById(img_id).src="/images/button_galleries_on.gif";
		}
}

function roll_out(img_id,imgType){
		if(imgType=='profile')
		{
			document.getElementById(img_id).src="/images/button_PersProfile_off.gif";
		}
		else
		{
			document.getElementById(img_id).src="/images/button_galleries_off.gif";
		}
}


function roll_over_home(Obj)
	{
		Obj.src="/images/redesign/button_Home_on.gif";
	}

function roll_out_home(Obj)
	{
		Obj.src="/images/redesign/button_Home_off.gif";
	}

function roll_over_search(Obj)
	{
		Obj.src="/images/redesign/button_searchmore_on.gif";
	}

function roll_out_search(Obj)
	{
		Obj.src="/images/redesign/button_searchmore_off.gif";
	}