function openWindow(inUrl, inResizeable, inShowMenu, inHeight, inWidth)
{
    var left = (screen.width - inWidth) / 2;
    var top  = (screen.height - inHeight) / 2;
    var params = "toolbar=no, location=no, directories=no, status=yes, scrollbars=yes, menubar=" + inShowMenu + ", resizeable=" + inResizeable  + ", top=" + top + ", left=" + left + ", height=" + inHeight + ",width=" + inWidth; 
    spawnWindow = open(inUrl, "", params);
}

function openFullWindow(inUrl)
{
    var left = screen.width / 2;
    var top  = screen.height / 2;
    var params = "toolbar=yes, location=yes, directories=yes, status=yes, scrollbars=yes, menubar=yes, resizeable=yes, top=" + top + ", left=" + left + ", height=" + screen.height + ",width=" + screen.width; 
    spawnWindow = open(inUrl, "", params);
}

sfHover = function() 
{
  if (!document.getElementById("creativeNav"))
 		return;
		
	var sfEls = document.getElementById("creativeNav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
			
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);

sfHoverPaper = function() 
	{
	 if (!document.getElementById("paperClipNavigation"))
	 		return;
	var sfEls = document.getElementById("paperClipNavigation").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" over";
			
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHoverPaper);

/*car pages*/
var selectedSection=1;
function car(option){
	selectedSection=option;
	
	var sfEls = document.getElementById("carFeatures").getElementsByTagName("dd");
	for (var i=1; i<sfEls.length + 1; i++) {
		document.getElementById("group" + i).style.display = "none";	
		}
		document.getElementById("group" + option).style.display = "block";
		
	var jjEls =  document.getElementById("selector").getElementsByTagName("dd");
	for (var i=0; i<jjEls.length; i++) {
		jjEls[i].className=" ";
		}
		jjEls[option-1].className=" over";
	
}
function carPrintWindow(city,code){
	var printUrl="p_w_S_C_"+city+"_"+code+".html?section="+selectedSection;
 	var load = window.open(printUrl,'','scrollbars=yes,menubar=yes,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no');
}



