
var oPopup;
var isexplorer;
/******* timers variables ******/
var currentsidr=0;
var currentsearch=0;
var currentdiagon=0;
var timer_id1=0
var timer_id2=0
var timer_id3=0
/*******************************/

function loadvars()
{

	isexplorer=getbrowser();
  if (isexplorer>5)	oPopup = window.createPopup();
//	loadimages();
}

function handcursor(obj)
{
	if (isexplorer>0) //enai IE
		obj.style.cursor='hand';
	else obj.style.cursor='pointer';
}

function menuenim(pagename)		//for adults
{
 	if (pagename=="home")
 	{
		menu_home.replaceNode(menu_home2);
		menu_home2.style.cursor="default"
		menu_home2.style.visibility="visible";
	}
	else
 	if (pagename=="freest")
 	{
		menu_freestuff.replaceNode(menu_freestuff2);
		menu_freestuff2.style.cursor="default"
		menu_freestuff2.style.visibility="visible";
	}
	else
 	if (pagename=="rendersit")
 	{
		menu_renersity.replaceNode(menu_renersity2);
		menu_renersity2.style.cursor="default"
		menu_renersity2.style.visibility="visible";
	}

}

function imagepopup(imagepath,w,h)
{
	var sfeatures;
	sfeatures="dialogWidth:"+w+"px;dialogHeight:"+h+"px;help:no;scroll:auto;status:no;center:on";
	var pathobject = new Object();
	pathobject.imagepath = imagepath;
 	if (isexplorer>0) // einai IE
		showModalDialog("imagepopup.html",pathobject,sfeatures);
	else window.open("imagepopup.html?"+imagepath,"_blank",sfeatures);
}

function fullscreenpopup(imagepath,w,h)
{
	var sfeatures;
	sfeatures="width="+w+",height="+h+",left=0,top=0,resizable=yes,scrollbars=yes,status=no";
	var pathobject = new Object();
	pathobject.imagepath = imagepath;
	window.open("fullscrimagepopup.html?"+imagepath,"_blank",sfeatures);
}

function helpme(filename)
{
 	if (filename!="")
 	{
		var xpos=0;
		var ypos=0;
		var sfeatures="dialogWidth:850px;dialogHeight:750px;help:no;scroll:auto;status:no;center:off;dialogLeft:"+xpos+";dialogTop:"+ypos;
	 	if (isexplorer>0) // einai IE
			var iret=showModalDialog("help/"+filename,0,sfeatures);
		else window.open("help/"+filename,"_blank",sfeatures);
	}
}

function scrwidth()
{
	return(window.screen.width);
}

function scrhigh()
{
	return(window.screen.height);
}

