//misc scripts

var loc = location.href;
var home = ((loc=="http://dev.virtualsolutions.ws/index.php")||(loc=="http://www.virtualsolutions.ws/index.php")||(loc=="http://dev.virtualsolutions.ws")||(loc=="http://www.virtualsolutions.ws")||(loc=="http://dev.virtualsolutions.ws/")||(loc=="http://www.virtualsolutions.ws/")) 
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
// pop-up function
var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
	}
}
function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function swapHome()
{
//swapImage("shop-exterior");
//swapImage("branch-interior");
//swapImage("biotherm");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function swapImage(whatimg)
{
var imgroot = "images/homepage/";
var im = document.getElementById("homesplash");
var source = imgroot + whatimg + ".jpg";
im.src = source;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function addAboutDiv()
{
var parent = document.getElementById("content-inner");
parent.setAttribute("class","aboutpage");
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function init()
{
if (home) swapHome();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
window.onload = init;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   document.write('<link href="http://dev.lloydi.com/vs.css" rel="stylesheet" type="text/css" />');