var ad;

function browser_check(){
	var browser_name = "";  
	browser_name = navigator.userAgent.toLowerCase();
	return browser_name;
	alert(browser_name);
}

function address_check(){
	var current_address = document.URL;
	var link_id = current_address.split('#');
	ad = link_id[0];
	return link_id[1];
}

function address_change(str){
location.href=ad + str;

}

function explanation_open(v) {
	var sw=parseInt(screen.availWidth);
	var sh=parseInt(screen.availHeight);
	var leftPos=sw/2-330;
	var topPos=sh/2-244;
	var wid;
	if(v=="wallPaper"){
		wid = window.open("./wallpaper.html","null","resizable=no,top="+topPos+"px,left="+leftPos+"px,width=620,height=570");
	}else if(v=="screenSaver"){
		wid = window.open("./screensaver.html","null","resizable=no,top="+topPos+"px,left="+leftPos+"px,width=620,height=650");
	}
	
}

function close_click() {
	window.close();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

function openNewWin(url, name, w, h) {
	var newWin;
	var options = "toolbar=no,menubar=no,status=yes,scrollbars=yes,resizable=yes";
	newWin = window.open(url, name,"width=" + w + ",height=" + h + options);
	newWin.focus();
}
