// JavaScript Document
/*
self.moveTo(0,0);	
self.resizeTo(screen.availWidth,screen.availHeight); 
*/

/*----------SIGN UP----------*/
function newWinSignup(url,w,h,menubar,status,toolbar,location,scrollbar,resizable) {
 var appWinSignup = window.open(url, "SignUp", "menubar=" + menubar + ", status=" + status +", toolbar=" + toolbar + ",location=" + location + ",resizable=" + resizable + ",scrollbars=" + scrollbar + ",left=" + (screen.width - w) / 2 + ",top=" + (screen.height - h) / 2 + ",width=" + w + ",height=" + h);
}

function openSignup(vcategoty, vmodel, vyear){
 var urlPage = '/subscribe/signup/email_sign_up.jsp?vehicleCategory='+vcategoty+'&vYear='+vyear+'&vModelName='+vmodel;
 newWinSignup(urlPage,'642','700','no','yes','no','no','no','no');
}
/*----------SIGN UP----------*/	

function hideScrollSpotlight(){
	var imgobj = document.getElementsByTagName('img');
	if (imgobj != null){
		for (var i = 0; i<imgobj.length;i++){	
			if( (imgobj[i].name == "s_i_gmchevroletdev") || (imgobj[i].name == "s_i_gmchevrolet") ){
				imgobj[i].style.display = "none";
			}
		}
	}
	var iframe= document.getElementById("ifrm");
	if (iframe != null){
		iframe.style.display = "none";
	}
}
 
function createContainers(){
	if (tabActive == "videos"){
		var divPageWrapper = document.getElementById('pageWrapper');
		divPageWrapper.innerHTML="";
		var divMenuContainer = document.createElement('div');
		var divVideosContainer = document.createElement('div');
		
		divMenuContainer.setAttribute('id','menuContainer');
		divVideosContainer.setAttribute('id','videosContainer');
		divPageWrapper.appendChild(divMenuContainer);
		divPageWrapper.appendChild(divVideosContainer);
	}
}

function changeSize(size){
		var container=document.getElementById('menuF');
		container.height=size;
		var embeds=container.getElementsByTagName('embed');
		//alert(embeds[0].height);
		//container.style.height=size;
		//embeds[0].height=size;
		
		//alert('no se cayo');
	}