var isMozilla;
var objDiv = null;
var originalDivHTML = "";
var DivID = "";
var over = false;


function getModelSection(model, section) // getModelSection
{			
	if ((section=='1')||(section == '3'))
	{
		swapModelDisclaimers(model);
	}
	
	var distitle = "";
	var discontent="";	
	
	if (section == '5')
	{
		document.getElementById('universalLegal1').style.visibility='visible';
		
		if (model == '93s')
		{
			distitle = "[+] Read More About the 9-3 Sport Sedan";	
			discontent = "The Saab 9-3 Sport Sedan (Saab 9-3 Aero or Saab 9-3 2.0T) carries on the heritage of aircraft innovation found in all Saab cars. From its legendary Saab <a href=\"/saabjsp/turbo/\" style=\"text-decoration:none\">Turbo engine</a> and impressive real-life safety to its sleek, aerodynamic design, the new Saab 9-3 delivers more of everything you expect from a Saab automobile. It also delivers more of everything you expect from a luxury sedan too. Select models are equipped with Saab <a href=\"/saabjsp/all-wheel-drive/xwd/\" style=\"text-decoration:none\">XWD</a>, taking the all-wheel drive (AWD) sedan to a new level. And when you buy a new Saab, you can outfit your vehicle with genuine Saab 9-3 parts and accessories. Making your Saab 9-3 as unique and powerful as its pilot.";
		}
		else if (model == '93c')
		{
			distitle="[+] Read More About the 9-3 Convertible";
			discontent="Get closer to nature in a new Saab 9-3 Convertible (Saab 9-3 Aero or Saab 9-3 2.0T). Our strong tradition of design and innovation informs every inch of this unique Saab automobile, top up or top down. The only convertible that Saab makes, the 9-3 Saab has an advantage over other convertible cars and luxury convertibles &mdash; thanks in part to its efficient use of space, aerodynamic design and, of course, its legendary Saab Turbo engine. Sporty, elegant and playful all at the same time, the Saab 9-3 is a true four-season, four-seat convertible. And for a limited time, you can choose the one-of-a-kind Saab 9-3 Convertible Special Edition. The Special Edition features a new, exclusive color and design elements inspired by the Turbo X performance model &mdash; from the front bumper and dual exhaust pipes outside to carbon fiber finishes inside. When you buy a new Saab car, you can customize it with genuine Saab 9-3 parts and accessories.";
		} 	
		else if (model == '935')
		{
			distitle="[+]  Read More About the 9-3 SportCombi";
			discontent="Drive the new Saab 9-3 SportCombi wagon (Saab 9-3 Aero or Saab 9-3 2.0T) and let your adventures take flight. Responsible, yet exhilarating performance. Sleek, Scandinavian design. Innovative, flexible cargo space. The SportCombi blends the aircraft heritage of a Saab automobiles with everything you expect from a luxury vehicle. The SportCombi can take you in so many directions thanks to its versatile, efficient design. When you buy a new SportCombi, you can fine-tune it with genuine Saab 9-3 accessories. From roof racks and rails, to bike holders, cargo dividers and much more, you are always ready for departure.";
		} 
		else if (model == '95s')
		{
			distitle="[+]  Read More About the 9-5 Sedan";
			discontent="You don't need wings to fly. Enjoy true driving exhilaration with the aerodynamic Saab 9-5 Sedan (Saab 9-5 Aero or Saab 9-5 2.3T). Take this sporty, versatile Saab automobile for a spin, and you'll feel the force of our legendary Saab <a href=\"/saabjsp/turbo/\" style=\"text-decoration:none\">Turbo engine</a>. These turbocharged luxury sedans mix turbo efficiency with Scandinavian design innovation. Sleek and strong to enhance performance and safety. Intelligent and intuitive so features are not only smart, but right where you need them. The new Saab 9-5 Sedan Griffin Edition is specially designed with bold styling cues &ndash; drawing inspiration from a legend to bring the Saab 9-5 to new heights. And when you buy a new Saab car, you have the opportunity to make it your own with genuine Saab 9-5 parts and accessories.";
		} 
		else if (model == '95w')
		{
			distitle="[+]  Read More About the 9-5 SportCombi";
			discontent="With the Saab 9-5 SportCombi wagon (Saab 9-5 Aero or Saab 9-5 2.3T) the sky really is the limit. Feel the power of its Saab <a href=\"/saabjsp/turbo/\" style=\"text-decoration:none\">Turbo engine</a> and experience an exhilarating drive. Bring along your gear and enjoy the versatility of its added cargo space. The Saab 9-5 SportCombi allows adventure to be a bigger part of your daily life, all with Scandinavian design and a jet-inspired heritage. The new Saab 9-5 SportCombi Griffin Edition is specially designed with bold styling cues &ndash; drawing inspiration from a legend to bring the Saab 9-5 to new heights. Once you buy a new Saab vehicle, genuine Saab Accessories are the most versatile way to make it fit your life. A new Saab 9-5 SportCombi delivers the flexibility and personality you'll only find in a Saab car.";
		} 
		else if (model == '97x')
		{
			distitle="[+] Read More About the 9-7X SUV";
			discontent="Enjoy the flight behind the controls of the new Saab 9-7X (Saab 9-7X Aero, Saab 9-7X 4.2i, or Saab 9-7X 5.3i) - the first Saab SUV. The 9-7X features available Active Fuel Management and the most standard features in the GM Mid-Luxury Utility segment. The Saab 9-7X SUV is versatile like any sport utility vehicle, but with the Scandinavian design and distinctive personality that only a Saab can bring. And when you buy a new Saab 9-7X, you can fine-tune it with genuine Saab 9-7X accessories. Giving your new Saab SUV a look and feel that makes it distinctly your own.";
		} 
		else if (model == 'tx')
		{
			distitle="[+]  Read More About the Turbo X";
			discontent="The limited edition Saab Turbo X - inspired by the original Saab 900 Black <a href=\"/saabjsp/turbo/\" style=\"text-decoration:none\">Turbo</a> and available only in Jet Black, naturally - is the most powerful Saab ever. With the turbocharged Turbo X Sport Sedan and SportCombi, Saab unleashes its jet-inspired turbo power through Saab <a href=\"/saabjsp/all-wheel-drive/xwd/\" style=\"text-decoration:none\">XWD</a> for the very first time. It's not just all-wheel drive (AWD), it's an innovative cross-wheel drive (XWD) system. Plus, the ultra sport-tuned chassis, brakes and the first-in-segment electronic Limited Slip Differential (e-LSD) combine to give you the ride of your life, whether you're piloting the Turbo X Sedan or SportCombi. And the all-black leather-appointed interior definitely feels like a luxury sedan. The Turbo X is Saab's ultimate performance expression.";
		}
		else
		{
			distitle="[+] Read More About Saab Automobiles";
			discontent="When you buy a new Saab vehicle, you're taking off on the flight of your life. Saab luxury sedans, convertibles, SportCombis and SUVs feature Scandinavian design, innovative technology, efficient performance, and impressive real-life safety. Select models are also equipped with legendary Saab Turbo power and Saab <a href=\"/saabjsp/all-wheel-drive/xwd\" style=\"text-decoration:none\">XWD</a>, which takes all-wheel drive (AWD) to a new level. Choose from the sleek Saab 9-3 Sport Sedan, Saab 9-3 SportCombi <a href=\"/saabjsp/935/index.jsp\" style=\"text-decoration:none\">wagon</a> or Saab 9-3 <a href=\"/saabjsp/93c/index.jsp\" style=\"text-decoration:none\">Convertible</a>. The advanced aerodynamics of the Saab 9-5 <a href=\"/saabjsp/95s/index.jsp\" style=\"text-decoration:none\">Sedan</a> and Saab 9-5 SportCombi.	Enjoy the flexible Saab 9-7X <a href=\"/saabjsp/97x/index.jsp\" style=\"text-decoration:none\">SUV</a>. Or experience the <a href=\"/saabjsp/tx/index.jsp\" style=\"text-decoration:none\">Saab Turbo X</a>, the most powerful Saab ever built. Build your own Saab car, request a quote or check <a href=\"/offers/currentOffers.jsp\" style=\"text-decoration:none\">Saab current offers</a> now.";
		} // if
	} // section 
	else if ((section == '1') || (section == '3'))
	{					
		document.getElementById('universalLegal1').style.visibility='visible';
		
		switch(model)
		{
			case "93s":		
				distitle = "[+] Read More About the 9-3 Sport Sedan";	
				discontent = "The Saab 9-3 Sport Sedan video and photo gallery reveals a re-born vehicle, more jet-inspired than ever. The Saab 9-3 images give you glimpses of the vehicle's innovative interior and its Scandinavian exterior design. In the Saab 9-3 gallery, you can also download Saab 9-3 wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the <a href=\"/saabjsp/93s/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab 9-3 Sport Sedan</a>, visit the model overview page.";
				break;		
			case "93c":	
				distitle = "[+] Read More About the 9-3 Convertible";	
				discontent = "Inspiration from the top down. The Saab 9-3 Convertible video and photo gallery offers you the full picture of this re-born luxury convertible. Select any of the Saab 9-3 Convertible images for an inside look at the interior and exterior. Also in the Saab 9-3 Convertible gallery, you can download 9-3 Convertible wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the Saab 9-3 Convertible, visit the model overview page.";
				break;				
			case "935":	
				distitle = "[+] Read More About the 9-3 SportCombi";	
				discontent = "Look to the jet-inspired for some inspiration of your own. The Saab 9-3 SportCombi video and photo gallery gives you a comprehensive view of our versatile, innovative wagon. Tour the Saab 9-3 SportCombi images, both interior and exterior. Also in the Saab 9-3 SportCombi gallery, you can download 9-3 SportCombi wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the <a href=\"/saabjsp/935/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab 9-3 SportCombi</a>, visit the model overview page.";
				break;				
			case "95s":	
				distitle = "[+] Read More About the 9-5 Sedan";	
				discontent = "Frequent fliers, look no further. The Saab 9-5 Sedan video and photo gallery shows you everything you need to know about this turbocharged luxury sedan. Choose from interior or exterior Saab 9-5 Sedan images for a glimpse of jet-inspired technology and Scandinavian design innovation. Also in the Saab 9-5 Sedan gallery, you can download 9-5 Sedan wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the <a href=\"/saabjsp/95s/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab 9-5 Sedan</a>, visit the model overview page.";
				break;				
			case "95w":	
				distitle = "[+] Read More About the 9-5 SportCombi";	
				discontent = "Looking for adventure? The sky's the limit. The Saab 9-5 SportCombi photo gallery shows you the many possibilities of this versatile wagon. The collection of Saab 9-5 SportCombi images - both interior and exterior - highlight this exhilarating vehicle's Scandinavian design and jet-inspired heritage. Also in the Saab 9-5 SportCombi gallery, you can download 9-5 SportCombi wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the <a href=\"/saabjsp/95w/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab 9-5 SportCombi</a>, visit the model overview page.";
				break;	
			case "97x":	
				distitle = "[+] Read More About the 9-7X SUV";	
				discontent = "Your ticket to first class. The Saab 9-7X SUV video and photo gallery delivers a glimpse of Saab's premier sport utility vehicle. Choose interior or exterior Saab 9-7X SUV images to see SUV versatility mixed with the Scandinavian design and distinctive personality only found in a Saab. Also in the Saab 9-7X SUV gallery, you can download 9-7X wallpaper, Saab screensavers, or the Saab of the Month calendar. To learn more about the <a href=\"/saabjsp/97x/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab 9-7X SUV</a>, visit the model overview page.";
				break;	
			case "tx":	
				distitle = "[+] Read More About the Turbo X";	
				discontent = "Once you've built jets, you don't build just another car. See for yourself in the Saab Turbo X video and photo gallery. Featuring interior and exterior Saab Turbo X images, the Turbo X gallery illustrates why the <a href=\"/saabjsp/turbo/\" style=\"text-decoration:none\">turbocharged</a> Turbo X Sedan and SportCombi deliver Saab's ultimate performance expression. To learn more about the <a href=\"/saabjsp/tx/index.jsp?model_viewer=5\" style=\"text-decoration:none\">Saab Turbo X</a>, visit the model overview page.";
				break;
			case "tech":	
				distitle = "[+] Read More About SAAB Technology";	
				discontent = "Explore two of Saab's technological innovations - Saab Turbo technology and Saab XWD - on the Saab Technology site. Learn how we developed our Saab Turbo engines and how a Saab turbocharger increases engine efficiency and power. Also, find out how Saab cross-wheel drive technology (XWD) improves stability and handling. It's not just any all-wheel drive system. Get a turbocharged Saab Technology experience on <a href='http://www.saabusa.com'> SaabUSA.com</a>";
				break;			
			case "mr-t":
				distitle = "[+] Read More About Mr. Turbo.";
				discontent = "How did Saab revolutionize turbocharger technology more than 30 years ago? Watch a video from the late 1970s featuring Saab Turbo Chief Engineer Dr. Per Gillbrand. Saab's \"Mr. Turbo\" explains how Saab developed a light, four-cylinder, exhaust-driven turbocharged engine with the punch of a much larger engine, due to its efficiency. Find out more about Saab Turbo technology on our <a href='/saabjsp/technology/'>Saab Technology site.</a>";
				break;
			case "turbo":
				distitle = "[+] Read More About TurboCharger - How it works.";
				discontent = "Follow a step-by-step demonstration of how Saab Turbo technology works. Watch how a turbocharged Saab engine recycles its exhaust gas to increase both efficiency and power. Our turbocharger animation clearly answers the question, \"How did Saab tame the turbo engine?\" Plus, learn about the history of the Saab Turbo and more on our <a href='/saabjsp/technology/'>Saab Technology site.</a>";
				break;
			case "xwd":
				distitle = "[+] Read More About XWD.";
				discontent = "Saab XWD isn't just all-wheel drive. It's an innovative, advanced, cross-wheel drive system. Follow our step-by-step animation and see how Saab XWD improves on AWD technology. The Saab cross-wheel drive technology distributes driving torque to where it's needed most. The result is better handling, improved stability and a sportier driving experience in all conditions. Find out more about XWD technology on our <a href='/saabjsp/technology/'> Saab Technology site.</a>";
				break;
			case "home":		
				distitle="[+] Read More About Saab Automobiles";
				discontent="When you buy a new Saab vehicle, you're taking off on the flight of your life. Saab luxury sedans, convertibles, SportCombis and SUVs feature Scandinavian design, innovative technology, efficient performance, and impressive real-life safety. Select models are also equipped with legendary Saab Turbo power and Saab <a href=\"/saabjsp/all-wheel-drive/xwd\" style=\"text-decoration:none\">XWD</a>, which takes all-wheel drive (AWD) to a new level. Choose from the sleek Saab 9-3 Sport Sedan, Saab 9-3 SportCombi <a href=\"/saabjsp/935/index.jsp\" style=\"text-decoration:none\">wagon</a> or Saab 9-3 <a href=\"/saabjsp/93c/index.jsp\" style=\"text-decoration:none\">Convertible</a>. The advanced aerodynamics of the Saab 9-5 <a href=\"/saabjsp/95s/index.jsp\" style=\"text-decoration:none\">Sedan</a> and Saab 9-5 SportCombi.	Enjoy the flexible Saab 9-7X <a href=\"/saabjsp/97x/index.jsp\" style=\"text-decoration:none\">SUV</a>. Or experience the <a href=\"/saabjsp/tx/index.jsp\" style=\"text-decoration:none\">Saab Turbo X</a>, the most powerful Saab ever built. Build your own Saab car, request a quote or check <a href=\"/offers/currentOffers.jsp\" style=\"text-decoration:none\">Saab current offers</a> now.";
				break;		
			default:
				document.getElementById('universalLegal1').style.visibility='hidden';
				document.getElementById('windowcontent').style.display='none';
				break;
				
		} // switch 	
	}	
	else
	{
		document.getElementById('universalLegal1').style.visibility='hidden';
		document.getElementById('windowcontent').style.display='none';
	}	
	
		
	document.getElementById('universalLegal1').innerHTML = distitle; 
	document.getElementById('contentDisplay').innerHTML = discontent; 
	
	var spottext = "";
	
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	
	
	if (model== "tx")
	{	
		//alert('model : '+ model + ', section :' +section);
		if (section == '1')
		{			
			//spottext = "http://ad.doubleclick.net/activity;src=1139853;type=rphot917;cat=turbo759;ord="+ a + "?";
		}else if (section == '5')
		{		
			//spottext = "http://ad.doubleclick.net/activity;src=1139853;type=r360v956;cat=turbo735;ord=" + a + "?";
		}else
		{
			//spottext = "http://ad.doubleclick.net/activity;src=1139853;type=rgenr401;cat=saabh374;ord=" + a + "?";
		}

		try{			
			
			document.getElementById('spotlightImg').src = spottext; 
		}
		catch(excepDiv){
		}	
	} // if
	
}  //  getModelSection
 

function displayFloatingDiv(divId, title, width, height, left, top) 
{


DivID = divId;

	//document.getElementById('dimmer').style.visibility = "visible";

    document.getElementById(divId).style.width = width + 'px';
    document.getElementById(divId).style.height = height + 'px';
    document.getElementById(divId).style.left = left + 'px';
    document.getElementById(divId).style.top = top + 'px';
	
	var addHeader;
	
	if (originalDivHTML == "")
	    originalDivHTML = document.getElementById(divId).innerHTML;
	
	/*addHeader = '<table style="width:' + width + 'px">' +
	            '<tr><td style="width:60px;" align="right"><a href="javascript:hiddenFloatingDiv(\'' + divId + '\');void(0);">' + 
	            '<p style="font-size:9px; padding-right:5px;"><font color="red">close[x]</font></p></td></tr></table>';
	

     add to your div an header	
	document.getElementById(divId).innerHTML = addHeader + originalDivHTML;*/
	
	
	document.getElementById(divId).className = 'dimming';
	document.getElementById(divId).style.display = "block";


}

function hiddenFloatingDiv(divId) 
{

document.getElementById(divId).innerHTML = originalDivHTML;
	document.getElementById(divId).style.display='none';
	
	DivID = "";
}