if (top.location != self.location) {
	top.location = self.location;
}
var iPath = '/images/'; 
var iExt = 'gif'; 
var loaded = false; 
var suffix = new Array('over', 'off');

function preLoad() 
{ 
	if(document.images) { 
		var argLen = arguments.length; 
		for(var i = 0; i < argLen; i++) { 
			var arg = arguments[i]; 
			var sufLen = suffix.length; 
			for(j = 0; j < sufLen; j++) { 
				var suf = suffix[j]; 
				iNew = arg + '_' + suf + ' = new Image();'; 
				eval(iNew); 
				iSrc = arg + '_' + suf + '.src = \'' + iPath + arg + '_' + suf + '.' + iExt + '\';'; 
				eval(iSrc); 
			} 
		} 
	loaded = true; 
	} 
}

function rollOver(iName,iState) 
{ 
	if(document.images && loaded) { 
		document.images[iName].src = self[iName + '_' + iState].src; 
	} 
}

function onLoad() 
{ 
	preLoad('home',
		'cont',
		'prod',
		'home2',
		'cont2',
		'about2',
		'prod2');
}

window.onload = onLoad;


function showhide(id){
	if (document.getElementById){
		obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
			obj.style.display = "none";
		}
	}
}

function popup(url,width,height) {
	var version, handle;
	handle = window.open(url,'popup', 'left=20,top=20,width=' + width + ',height=' + height + ',resizable=0,scrollbars=0');
	version = navigator.appVersion.substring(0,1);
	if (version!="2") handle.focus();
}
