var slide_toggle = 0;var current_splash_id = 0;var intervalId = '';var longChange = '';var shortLength = 7000;var longLength = 20000;function revealOpen(){	if($('#blurb_reveal').is(":visible"))	{ 		return 1; 	}	else	{ 		return 0; 	}	}function blurbIconToggle(toggle){	if(toggle == 1)	{		$('#blurb .icon').attr("src","assets/images/blurb_plus.gif");	}	else	{		$('#blurb .icon').attr("src","assets/images/blurb_minus.gif");	}}function changeTab(tabid){if(current_splash != tabid)		{			//revealOpen();						// Close old tab			$('#splash #'+current_splash).removeClass('open');			$('#splash #'+current_splash).addClass('closed');						// Calculate new tab			current_splash = tabid;						// Open new tab				$('#splash #'+current_splash).removeClass('closed');			$('#splash #'+current_splash).addClass('open');						$('#splash .splash_image').hide();						$('#splash #'+current_splash+'_splash').show();						// Store new texts and image in vars			eval("var new_blurb_p = blurb_"+current_splash+"_p;");			eval("var new_blurb_reveal = blurb_"+current_splash+"_reveal;");//			eval("var new_blurb_img = blurb_"+current_splash+"_img;");//			eval("var new_blurb_a = blurb_"+current_splash+"_a;");//			eval("var new_blurb_js = blurb_"+current_splash+"_js;");//			eval("var new_blurb_html = blurb_"+current_splash+"_html;");			//			// Check file type//			var file_split = new_blurb_img.split(".");//			//			var file_extension = file_split[file_split.length - 1];//			//			if(file_extension == 'swf')//			{//				var flashvars = {//				  splash_link: new_blurb_a,//				  splash_image: new_blurb_img//				};//				//				// Put container back in//				$('#splash #splash_image').html('<div id="splash_image_swf"></div>');//				swfobject.embedSWF('assets/flash/splash.swf', "splash_image_swf", "580", "250", "9.0.0",false, flashvars, false, false);//			}//			else//			{//				$('#splash #splash_image').html(new_blurb_html);//			}									if(revealOpen()){				$('#blurb').slideUp('slow', function()									{ 										$('#blurb_reveal').html(new_blurb_reveal);										$('#blurb p#blurb_show').html(new_blurb_p);										$('#blurb').slideDown('slow');										if(revealOpen())										{											blurbIconToggle(0);											$('#blurb_reveal').slideDown('slow');										}									});				}			else			{				$('#blurb_reveal').html(new_blurb_reveal);				$('#blurb p#blurb_show').html(new_blurb_p);				if(revealOpen())				{					$('#blurb_reveal').slideDown('slow');				}			}					}}function initIcons(){	blurbIconToggle(revealOpen());	$('#blurb_reveal').slideToggle('slow');}function auto_rotate(){		if( !revealOpen()){						current_splash_id = current_splash_id + 1;						if(current_splash_id >= tab_ids.length){				current_splash_id = 0;			}						changeTab(tab_ids[current_splash_id]);		}				if(longChange)		{			clearInterval(intervalId);			intervalId = setInterval("auto_rotate()",shortLength);			longChange = false;		}}$(document).ready(function(){					$('#blurb_reveal').hide();					//					$('#blurb .icon').click( function()	{//													  			if(revealOpen())//																{//																	intervalId = setInterval("auto_rotate()",longLength);//																}//																else//																{//																	clearInterval(intervalId);//																}//																initIcons();//															});																				$('#tabs .open, #tabs .closed').click( function()	{																			changeTab($(this).attr('id'));																			//																			clearInterval(intervalId);//																			intervalId = setInterval("auto_rotate()",longLength);//																			longChange = true;																		});					//					intervalId = setInterval("auto_rotate()",shortLength);});