var activeID, activeObject, activeMenu, headerHeight, subMenuWidth, menuOffset;

// Page onLoad Event
function Page_onLoad()
{
	{
	// Settings
	menuOffset = (document.all) ? 3 : 0;	// 215 or 0
	headerHeight = '117px';	//document.getElementById("header_right").offsetHeight;				// '74px'
	}

	{

	var width = screen.width
	var height = screen.height
	if (width <= 800)
		alert('To view this website properly you must have your screen resolution set to 800x600 or higher.');
	}

}

// Show Layer Function
function show(theMenu, obj)
{ 
	if (activeID)
	{
		clearTimeout(activeID);
		hide(activeMenu);
	}
	
	activeObject = obj;

	
	var menuObj = document.getElementById(theMenu);
	if (menuObj)
	{
		var menuPos = activeObject.offsetLeft + menuOffset;
		//menuObj.style.left = (menuPos > subMenuMaxLeft) ? subMenuMaxLeft + 'px' : menuPos + 'px';
		menuObj.style.left = menuPos + 'px';
		menuObj.style.top = headerHeight;
		menuObj.style.display = "block";
			
	}
}

// Start Hide Layer Timeout Function
function timeoutHide(theMenu)
{
	activeMenu = theMenu;
	activeID = setTimeout("hide('" + theMenu + "')", 300);

}

// Hide Layer Function
function hide(theMenu)
{
	var menuObj = document.getElementById(theMenu);
	if (activeObject) activeObject.className = "menu_off";
	if (menuObj) menuObj.style.display = "none";
	
	
}

function designclever() {
    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 800, yMax=480;
 
    var xOffset = (xMax)/2-415, yOffset = (yMax - 200)/2-150;
  
window.open('http://www.designclever.com/','V','width=800,height=480,scrollbars=yes,toolbar=yes,resizable=yes,location=yes,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');
}


var slideShowSpeed = 4000;
var crossFadeDuration = 3;
var Pic = new Array();

Pic[0] = 'images/jpgs/type1.jpg'
Pic[1] = 'images/jpgs/type2.jpg'
Pic[2] = 'images/jpgs/type3.jpg'
Pic[3] = 'images/jpgs/type4.jpg'
Pic[4] = 'images/jpgs/type5.jpg'
Pic[5] = 'images/jpgs/type6.jpg'
Pic[6] = 'images/jpgs/type7.jpg'
Pic[7] = 'images/jpgs/type8.jpg'
Pic[8] = 'images/jpgs/type9.jpg'
Pic[9] = 'images/jpgs/type10.jpg'
Pic[10] = 'images/jpgs/type11.jpg'
Pic[11] = 'images/jpgs/type12.jpg'
Pic[12] = 'images/jpgs/type13.jpg'


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}

function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}
//-->