// getBrowserWidth function getBrowserWidth(){		if (window.innerWidth){			return window.innerWidth;}			else if (document.documentElement && document.documentElement.clientWidth != 0){			return document.documentElement.clientWidth;	}		else if (document.body){return document.body.clientWidth;}					return 0;}// dynamicLayoutfunction dynamicLayout(){	var browserWidth = getBrowserWidth(); //get the browser width			//var browserWidth = screen.width;	// get the screen height		if (browserWidth <= 1024){		changeLayout("medium");			}	//Load Wider CSS Rules	if (browserWidth > 1024){		changeLayout("big");	}	if(typeof getAllImg == 'function') {			getAllImg();	} 	}// changeLayout is based on setActiveStyleSheet functionfunction changeLayout(description){ /*   var i, a;   for(i=0; (a = document.getElementsByTagName("link")[i]); i++){	   if(a.getAttribute("title") == description){a.disabled = false;}	   else if(a.getAttribute("title") != "default"){a.disabled = true;}   }   */     var i, link_tag ;  for (i = 0, link_tag = document.getElementsByTagName("link") ;  i < link_tag.length ; i++ ) {    if ((link_tag[i].rel.indexOf( "stylesheet" ) != -1) && link_tag[i].title) {      link_tag[i].disabled = true ;      if (link_tag[i].title == description) {        link_tag[i].disabled = false ;      }    }    }}	//addEvent()	function addEvent( obj, type, fn ){ 	   if (obj.addEventListener){ 	      obj.addEventListener( type, fn, false );	   }	   else if (obj.attachEvent){ 	      obj["e"+type+fn] = fn; 	      obj[type+fn] = function(){ obj["e"+type+fn]( window.event ); } 	      obj.attachEvent( "on"+type, obj[type+fn] ); 	   }						} 	//dynamicLayout(); //called to avoid flickering	//Run dynamicLayout function when page loads and when it resizes.	//addEvent(window, 'load', dynamicLayout);	addEvent(window, 'resize', dynamicLayout);// adding javascript to store the screen resolution on the COOKIE Start  function getScreenSize(name,value,days){	 if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}else{	var expires = "";	}	document.cookie = name+"="+value+expires+"; path=/";		}var browserWidth = getBrowserWidth(); //get the browser widthif(browserWidth >1024) browserWidthApx 	= 1028if(browserWidth <=1024) browserWidthApx = 1024;getScreenSize("ScreenResolution",browserWidthApx,1);function Get_Cookie(name) {	if (document.cookie) {		var start = document.cookie.indexOf( name + "=" );		var len = start + name.length + 1;		if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) )		{			return null;		}		if ( start == -1 ) return null;		var end = document.cookie.indexOf( ";", len );		if ( end == -1 ) end = document.cookie.length;		return unescape( document.cookie.substring( len, end ) );	}}var curr_res = Get_Cookie("ScreenResolution");if(curr_res <=1024){	changeLayout("medium");}else{	changeLayout("big");}// adding javascript to store the screen resolution on the COOKIE END // mouse over change the class for the right nav link function rolloverA(linkId) {	if (RolloverLink == null) return;	RolloverLink.className = RolloverLinkClassName;	RolloverLink= null;	RolloverLinkClassName= "";}function rolloverB(linkId) {	RolloverLink = coElementId(linkId);	RolloverLinkClassName = RolloverLink.className;	RolloverLink.className = RolloverLinkClassName + "B";	}// end
