function fullScreen(theURL) {
	window.open(theURL, '', 'fullscreen=yes, scrollbars=0, location=no');
	}

function searchbox(){
	document.search_site.s.value = "";
}
var png_overlay = 'images/mask2.html';
var suffix = '_over';


function target_object(x,z,desc){
	
		document.getElementById(x).innerHTML = '<img src='+z+'><div id="target_desc">'+document.getElementById(desc).getAttribute("description")+'</div>';	
	
}



function slide(x){
	if (document.getElementById(x).style.display == 'none'){
		if (document.getElementById('how').style.display != 'none'){new Effect.BlindUp(document.getElementById('how'));}
		if (document.getElementById('welcome').style.display != 'none'){new Effect.BlindUp(document.getElementById('welcome'));}
		if (document.getElementById('what').style.display != 'none'){new Effect.BlindUp(document.getElementById('what'));}
		if (document.getElementById('availible').style.display != 'none'){new Effect.BlindUp(document.getElementById('availible'));}
		setTimeout("new Effect.BlindDown(document.getElementById('"+x+"'))",1000);
	}
}


function gourl(x,y){
	
myLightWindow.deactivate();
myLightWindow.activateWindow({
	href: 'applications.asp?m=0&func=sendtofriend&idkey='+x+'&image='+y, 
	title: ' ', 
	height:450,
	width:400,
	top:0,
	left:0
});

};

function gourl_begin(x,y){
	
	myLightWindow.activateWindow({
	href: 'applications.asp?m=0&func=sendtofriend&idkey='+x+'&image='+y, 
	title: ' ', 
	height:450,
	width:400,
	top:0,
	left:0
});

};


function social(){
	
myLightWindow.deactivate();
myLightWindow.activateWindow({
	href: 'social.asp', 
	title: '', 
	height:300,
	width:400,
	top:0,
	left:0
});

};


function gourl_login(){
	
myLightWindow.activateWindow({
	href: 'tools.asp?m=0&stay_as=login', 
	title: '', 
	height:200,
	width:300,
	top:0,
	left:0
});

};

function gourl_app(func,key,title){
	
myLightWindow.activateWindow({
	href: 'applications.asp?m=0&func='+func+'&idkey='+key+'&title='+title+'&select=yes', 
	title: '', 
	height:500,
	width:600,
	top:0,
	left:0
});

};

function gourl_app_begin(){
	
myLightWindow.activateWindow({
	href: 'applications.asp?m=0&func='+func+'&idkey='+key+'&title='+title+'&select=yes', 
	title: '', 
	height:500,
	width:600,
	top:0,
	left:0
});

};


var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}



	function show_sub(x,z){
	hide_all();
	
	if (document.getElementById(x).getElementsByTagName('ul')[0]!=null){
		document.getElementById(x).getElementsByTagName('ul')[0].style.visibility = 'visible';
	}
	
	}
	
	
	
	function hide_all(){
	
		var xxx = getElementsByClassName('sub_menu');
		
		for (i=0; i<xxx.length;i++){
		
			xxx[i].style.visibility = 'hidden';
		
		}
	
	
	}
function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

