

//window.open("http://www.facebook.com/srch.php?nm=bond+edit");



$(document).ready( function(){ 

	

	//$('#news').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '116px' }); 

	//$('#portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	//$('.portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'random_start', containerheight: '290px' }); 

	//alert($("#stage").html());

	$('#stage #portfolio').cycle()

	$('#preview #news').cycle()

	

	// MENU FUNCTION

	function initMenu() {

	  $('#menu ul').hide();

	  $('#menu ul:first').hide();

	  $('#menu li a').click(

		function() {

		  var checkElement = $(this).next();

		  if((checkElement.is('ul')) && (checkElement.is(':visible'))) {

			return false;

			}

		  if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {

			$('#menu ul:visible').slideUp('normal');

			checkElement.slideDown('normal');

			return false;

			}

		  }

		);

	  }

	$(document).ready(function() {initMenu();});

	

	

	var regularLogo = $("#regularLogo").html();

	

	var mainNavCurrentButton = "home";

	

	

// for scroller: home/happenings and about

/*

			$(function()

			{

				// this initialises the demo scollpanes on the page.

				//$('#pane1').jScrollPane({showArrows:true, scrollbarWidth: 17});

				//$('#pane2').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});

				//$('#pane3').jScrollPane();

				$('#pane4').jScrollPane({scrollbarOnLeft:true});

				$('#pane5').jScrollPane({scrollbarOnLeft:true});

				$('#pane6').jScrollPane({scrollbarOnLeft:true});

			});

*/

			

//////////////////	



	

	

	turnOnAllMainRollOvers();

	

} ); 





















// MAIN LINK ARRAY

	var secArray = [];

	secArray[0] = "navAbout";

	secArray[1] = "navEditors";

	secArray[2] = "navDesign";

	secArray[3] = "navSound";

	secArray[4] = "navContact";

	var secImages = [];

	secImages[0] = "about";

	secImages[1] = "editors";

	secImages[2] = "design";

	secImages[3] = "sound";

	secImages[4] = "contact";

	









function rollOverOffMainNav(nav) {

	

	document.getElementById(nav).setAttribute("onmouseover", "");

	document.getElementById(nav).setAttribute("onmouseout", "");

	

	for(var i = 0; i < secArray.length; i++) {

		if(nav != secArray[i]) {

			document.getElementById(secArray[i]).setAttribute("onmouseover", "buttondown('" + secArray[i] + "', '" + secImages[i] +  "');");

			document.getElementById(secArray[i]).setAttribute("onmouseout", "buttonup('" + secArray[i] + "', '" + secImages[i] +  "');");

		}

	}

}



// for initializing at first download or click on logo

function turnOnAllMainRollOvers() {

	

	for(var i = 0; i < secArray.length; i++) {

			document.getElementById(secArray[i]).setAttribute("onmouseover", "buttondown('" + secArray[i] + "', '" + secImages[i] +  "');");

			document.getElementById(secArray[i]).setAttribute("onmouseout", "buttonup('" + secArray[i] + "', '" + secImages[i] +  "');");

	}

}

function buttondown( buttonname, img )

{

	  var elem = document.getElementById(buttonname);

	  var path = "images/" +img+ "_rollover.png";

	  elem.firstChild.setAttribute("src", path);

	  

}

function buttonup ( buttonname, img )

{

	  var elem = document.getElementById(buttonname);

	  var path = "images/" +img+ "_off.png";

	  elem.firstChild.setAttribute("src", path);



}



















































// MAIN ABOUT SUB ARRAY

	var subAboutIDs = [];

	subAboutIDs[0] = "subLeadership";

	//subAboutIDs[1] = "subProducers";

	subAboutIDs[1] = "subTour";

	subAboutIDs[2] = "subBuzz";

	//subAboutIDs[4] = "subParties";
	subAboutIDs[3] = "subEvents";

	
	subAboutIDs[4] = "subBroadcast";
	subAboutIDs[5] = "subCommercial";
	//subAboutIDs[5] = "subClaudia";

	//subAboutIDs[6] = "subSebastian";

	//subAboutIDs[7] = "subGreg";

	//subAboutIDs[8] = "subGustavo";

	//subAboutIDs[7] = "subDave";

	//subAboutIDs[8] = "subStas";

	

	subAboutIDs[6] = "subJoe";

	//subAboutIDs[10] = "subMark";

	

	subAboutIDs[7] = "subLocation";

	subAboutIDs[8] = "subDailies";

	

	//subAboutIDs[13] = "subVisualEffects";

	//subAboutIDs[15] = "subCreativeDirection";

	//subAboutIDs[14] = "subInteractive";

	

	

	

	var subAboutImages = [];

	subAboutImages[0] = "leadership";

	//subAboutImages[1] = "producers";

	subAboutImages[1] = "tour";

	subAboutImages[2] = "buzz";

	//subAboutImages[4] = "parties";
	subAboutImages[3] = "events";

	subAboutImages[4] = "BroadcastReel";
	subAboutImages[5] = "CommercialReel";
	

	//subAboutImages[5] = "claudia";

	//subAboutImages[6] = "sebastian";

	//subAboutImages[7] = "greg";

	//subAboutImages[8] = "gustavo";

	//subAboutImages[7] = "dave";

	//subAboutImages[8] = "stas";

	

	subAboutImages[6] = "joe";

	//subAboutImages[10] = "mark";

	

	subAboutImages[7] = "location";

	subAboutImages[8] = "dailies";

	

	//subAboutImages[13] = "visualeffects";

	//subAboutImages[15] = "creativedirection";

	//subAboutImages[14] = "interactive";



// ABOUT 

function turnOnAllSubRollOvers() {

	//alert("hey");

	for(var i = 0; i < subAboutIDs.length; i++) {

			document.getElementById(subAboutIDs[i]).setAttribute("onmouseover", "subbuttondown('" + subAboutIDs[i] + "', '" + subAboutImages[i] +  "');");

			document.getElementById(subAboutIDs[i]).setAttribute("onmouseout", "subbuttonup('" + subAboutIDs[i] + "', '" + subAboutImages[i] +  "');");

	}

}

function rollOverOffSubNav(nav) {

	

	document.getElementById(nav).setAttribute("onmouseover", "");

	document.getElementById(nav).setAttribute("onmouseout", "");

	

	for(var i = 0; i < subAboutIDs.length; i++) {

		if(nav != subAboutIDs[i]) {

			document.getElementById(subAboutIDs[i]).setAttribute("onmouseover", "subbuttondown('" + subAboutIDs[i] + "', '" + subAboutImages[i] +  "');");

			document.getElementById(subAboutIDs[i]).setAttribute("onmouseout", "subbuttonup('" + subAboutIDs[i] + "', '" + subAboutImages[i] +  "');");

		}

	}

}





function subbuttondown( buttonname, img )

{

	  var elem = document.getElementById(buttonname);

	  var path = "images/" +img+ "_rollover.png";

	  elem.firstChild.setAttribute("src", path);

}

function subbuttonup ( buttonname, img )

{

	  var elem = document.getElementById(buttonname);

	  var path = "images/" +img+ "_off.png";

	  elem.firstChild.setAttribute("src", path);

}

















	subLeadershipImgon       = new Image();

    subLeadershipImgon.src   = "images/leadership_on.png" ;

    subLeadershipImgoff      = new Image() ;

    subLeadershipImgoff.src  = "images/leadership_off.png" ;

	

	//subProducersImgon       = new Image();

    //subProducersImgon.src   = "images/producers_on.png" ;

    //subProducersImgoff      = new Image() ;

    //subProducersImgoff.src  = "images/producers_off.png" ;
	
	subBroadcastImgon       = new Image();

    subBroadcastImgon.src   = "images/BroadcastReel_on.png" ;

    subBroadcastImgoff      = new Image() ;

    subBroadcastImgoff.src  = "images/BroadcastReel_off.png" ;
	
	
	subCommercialImgon       = new Image();

    subCommercialImgon.src   = "images/CommercialReel_on.png" ;

    subCommercialImgoff      = new Image() ;

    subCommercialImgoff.src  = "images/CommercialReel_off.png" ;

	

	subTourImgon       = new Image();

    subTourImgon.src   = "images/tour_on.png" ;

    subTourImgoff      = new Image() ;

    subTourImgoff.src  = "images/tour_off.png" ;

	

	subBuzzImgon       = new Image();

    subBuzzImgon.src   = "images/buzz_on.png" ;

    subBuzzImgoff      = new Image() ;

    subBuzzImgoff.src  = "images/buzz_off.png" ;

	
/*
	subPartiesImgon       = new Image();

    subPartiesImgon.src   = "images/parties_on.png" ;

    subPartiesImgoff      = new Image() ;

    subPartiesImgoff.src  = "images/parties_off.png" ;
*/
	subEventsImgon       = new Image();

    subEventsImgon.src   = "images/events_on.png" ;

    subEventsImgoff      = new Image() ;

    subEventsImgoff.src  = "images/events_off.png" ;
	

	

	

	loginaccesson      = new Image();

    loginaccesson.src   = "images/Access_on.png" ;

    loginaccessoff      = new Image() ;

    loginaccessoff.src  = "images/Access_off.png" ;

	

    requestareelon       = new Image();

    requestareelon.src   = "images/requestareel_on.gif" ;

    requestareeloff      = new Image() ;

    requestareeloff.src  = "images/requestareel_off.gif" ;

	

	requestinfoon       = new Image();

    requestinfoon.src   = "images/Request_info_on.png" ;

    requestinfooff      = new Image() ;

    requestinfooff.src  = "images/Request_info_off.png" ;

	

	coreweblnkon       = new Image();

    coreweblnkon.src   = "images/core_weblnk_rollover.png" ;

    coreweblnkoff      = new Image() ;

    coreweblnkoff.src  = "images/core_weblnk_on.png" ;

	

	eatdrnkweblnkon    = new Image();

    eatdrnkweblnkon.src   = "images/eatdrnk_weblnk_rollover.png" ;

    eatdrnkweblnkoff      = new Image() ;

    eatdrnkweblnkoff.src  = "images/eatdrnk_weblnk_on.png" ;

	

	

	facebook1on       = new Image();

    facebook1on.src   = "images/facebook_rollover.png" ;

    facebook1off      = new Image() ;

    facebook1off.src  = "images/facebook_off.png" ;

	

	facebook2on       = new Image();

    facebook2on.src   = "images/facebook_rollover.png" ;

    facebook2off      = new Image() ;

    facebook2off.src  = "images/facebook_off.png" ;

	

	jeffon       = new Image();

    jeffon.src   = "images/contact_email_jeff_on.gif" ;

    jeffoff      = new Image() ;

    jeffoff.src  = "images/contact_email_jeff.gif" ;

	

	//stephanieon      = new Image();

   // stephanieon.src   = "images/contact_email_stephanie_on.gif" ;

   // stephanieoff      = new Image() ;

    //stephanieoff.src  = "images/contact_email_stephanie.gif" ;
	
	
	
	jcasalinoon = new Image();
	jcasalinoon.src = "images/contact_email_Joe_on.png" ;
	jcasalinooff = new Image();
	jcasalinooff.src = "images/contact_email_Joe_off.png" ;

	

	amyon      = new Image();

    amyon.src   = "images/contact_email_amy_on.gif" ;

    amyoff      = new Image() ;

    amyoff.src  = "images/contact_email_amy.gif" ;

	

	annon      = new Image();

    annon.src   = "images/contact_email_ann_on.png" ;

    annoff      = new Image() ;

    annoff.src  = "images/contact_email_ann.png" ;
	
	
	
	soniaon      = new Image();

    soniaon.src   = "images/contact_email_sonia_on.png" ;

    soniaoff      = new Image() ;

    soniaoff.src  = "images/contact_email_sonia_off.png" ;

	

	mirarepson      = new Image();

    mirarepson.src   = "images/contact_email_mirareps_on.gif" ;

    mirarepsoff      = new Image() ;

    mirarepsoff.src  = "images/contact_email_mirareps.gif" ;

	

	gottalenton      = new Image();

    gottalenton.src   = "images/contact_email_gottalent_on.gif" ;

    gottalentoff      = new Image() ;

    gottalentoff.src  = "images/contact_email_gottalent.gif" ;

	

	generalinfoon      = new Image();

    generalinfoon.src   = "images/contact_email_generalinfo_on.gif" ;

    generalinfooff      = new Image() ;

    generalinfooff.src  = "images/contact_email_generalinfo.gif" ;

	

	stephanieproduceron      = new Image();

    stephanieproduceron.src   = "images/stephanie_button_on.png" ;

    stephanieproduceroff      = new Image() ;

    stephanieproduceroff.src  = "images/stephanie_button_off.png" ;

	

	amyproduceron      = new Image();

    amyproduceron.src   = "images/Amy_button_on.png" ;

    amyproduceroff      = new Image() ;

    amyproduceroff.src  = "images/Amy_button_off.png" ;

	

	environmenton      = new Image();

    environmenton.src   = "images/environment_on.png" ;

    environmentoff      = new Image() ;

    environmentoff.src  = "images/environment_off.png" ;

	

	edit1on      = new Image();

    edit1on.src   = "images/edit1_on.png" ;

    edit1off      = new Image() ;

    edit1off.src  = "images/edit1_off.png" ;

	

	edit2on      = new Image();

    edit2on.src   = "images/edit2_on.png" ;

    edit2off      = new Image() ;

    edit2off.src  = "images/edit2_off.png" ;

	

	edit3on      = new Image();

    edit3on.src   = "images/edit3_on.png" ;

    edit3off      = new Image() ;

    edit3off.src  = "images/edit3_off.png" ;

	

	edit4on      = new Image();

    edit4on.src   = "images/edit4_on.png" ;

    edit4off      = new Image() ;

    edit4off.src  = "images/edit4_off.png" ;

	

	edit5on      = new Image();

    edit5on.src   = "images/edit5_on.png" ;

    edit5off      = new Image() ;

    edit5off.src  = "images/edit5_off.png" ;

	

	graphics1on      = new Image();

    graphics1on.src   = "images/graphics1_on.png" ;

    graphics1off      = new Image() ;

    graphics1off.src  = "images/graphics1_off.png" ;

	

	graphics2on      = new Image();

    graphics2on.src   = "images/graphics2_on.png" ;

    graphics2off      = new Image() ;

    graphics2off.src  = "images/graphics2_off.png" ;

	

	audio1on      = new Image();

    audio1on.src   = "images/audio1_on.png" ;

    audio1off      = new Image() ;

    audio1off.src  = "images/audio1_off.png" ;

	

	audio2on      = new Image();

    audio2on.src   = "images/audio2_on.png" ;

    audio2off      = new Image() ;

    audio2off.src  = "images/audio2_off.png" ;

	

	bestadson      = new Image();

    bestadson.src   = "images/best_ads_on.png" ;

    bestadsoff      = new Image() ;

    bestadsoff.src  = "images/best_ads_off.png" ;

	

	prosoundon      = new Image();

    prosoundon.src   = "images/prosound_on.png" ;

    prosoundoff      = new Image() ;

    prosoundoff.src  = "images/prosound_off.png" ;

	

	sourceon      = new Image();

    sourceon.src   = "images/source_on.png" ;

    sourceoff      = new Image() ;

    sourceoff.src  = "images/source_off.png" ;

	

	studioon      = new Image();

    studioon.src   = "images/studio_on.png" ;

    studiooff      = new Image() ;

    studiooff.src  = "images/studio_off.png" ;

	

	digitalon      = new Image();

    digitalon.src   = "images/digital_on.png" ;

    digitaloff      = new Image() ;

    digitaloff.src  = "images/digital_off.png" ;

	

	animationon      = new Image();

    animationon.src   = "images/animation_on.png" ;

    animationoff      = new Image() ;

    animationoff.src  = "images/animation_off.png" ;

	

	shooton      = new Image();

    shooton.src   = "images/shoot_on.png" ;

    shootoff      = new Image() ;

    shootoff.src  = "images/shoot_off.png" ;

	

	boardson      = new Image();

    boardson.src   = "images/boards_on.png" ;

    boardsoff      = new Image() ;

    boardsoff.src  = "images/boards_off.png" ;

	

	shootpron      = new Image();

    shootpron.src   = "images/shootpr_on.png" ;

    shootproff      = new Image() ;

    shootproff.src  = "images/shootpr_off.png" ;

	

	shoottton      = new Image();

    shoottton.src   = "images/shoottt_on.png" ;

    shootttoff      = new Image() ;

    shootttoff.src  = "images/shoottt_off.png" ;

	

	

	

	change2009on      = new Image();

    change2009on.src   = "images/2009_change_on.png" ;

    change2009off      = new Image() ;

    change2009off.src  = "images/2009_change_off.png" ;

	

	valentines2008on      = new Image();

    valentines2008on.src   = "images/2008_valentines_on.png" ;

    valentines2008off      = new Image() ;

    valentines2008off.src  = "images/2008_valentines_off.png" ;

	

	holidayparty2007on      = new Image();

    holidayparty2007on.src   = "images/2007_holidayparty_on.png" ;

    holidayparty2007off      = new Image() ;

    holidayparty2007off.src  = "images/2007_holidayparty_off.png" ;

	
/*
	AHAApartyon      = new Image();

    AHAApartyon.src   = "images/AHAA_party_on.png" ;

    AHAApartyoff      = new Image() ;

    AHAApartyoff.src  = "images/AHAA_party_off.png" ;
	*/
	SheSayson      = new Image();

    SheSayson.src   = "images/SheSays_on.png" ;

    SheSaysoff      = new Image() ;

    SheSaysoff.src  = "images/SheSays_off.png" ;

	
/*
	valentines2007on      = new Image();

    valentines2007on.src   = "images/2007_valentines_party_on.png" ;

    valentines2007off      = new Image() ;

    valentines2007off.src  = "images/2007_valentines_party_off.png" ;
	*/
	FABon      = new Image();

    FABon.src   = "images/FAB_on.png" ;

    FABoff      = new Image() ;

    FABoff.src  = "images/FAB_off.png" ;

	

	holiday2006on      = new Image();

    holiday2006on.src   = "images/2006_holiday_party_on.png" ;

    holiday2006off      = new Image() ;

    holiday2006off.src  = "images/2006_holiday_party_off.png" ;

	

	summerparty2009on      = new Image();

    summerparty2009on.src   = "images/2009_summer_party-On.png" ;

    summerparty2009off      = new Image() ;

    summerparty2009off.src  = "images/2009_summer_party-Off.png" ;





function rollover( over ) {

      document.images[over].src = eval( over + "on.src" );

}

function rollout( out ) {

      document.images[out].src = eval( out + "off.src" );

}













	function roll(img) {

		var id = "#" + img;

		//imgsrc = $(id).children("img").attr("src");

		

		// off img

		var imgsrc = $(id).attr("src");

		

		var theon = img + "on";

		//alert(eval(theon + ".src"));

		matches = imgsrc.match(eval(theon + ".src"));

		if (!matches) {

			//imgsrcON = imgsrc.replace(/_off.png$/ig,"_hover.png");

			//imgsrcON = id.src;

			//$(id).children("img").attr("src", imgsrcON);

			$(id).attr("src", eval(theon + ".src"));

		}

	}

	

	function out(img) {

		var id = "#" + img;

		var theoff = img + "off";

		//var imgsrc = $(id).attr("src");

		//alert(imgsrc);

		//$(id).children("img").attr("src", imgsrc);

		$(id).attr("src", eval(theoff + ".src"));

	}















// VIEW FLASH PLAYER MOVIE

function viewMovie(mov,section,ratio) {

	$("#preview").html("");

	$("#stage").html("");

	if(ratio == 'wide') {

		var player = "flvPlayer.swf"; // wide

	}else{

		var player = "flvPlayer2.swf"; // 4:3

	}

	

	if(section == "home") {

		var path = "videos/HOME_Page_Videos/home_" + mov + ".flv";

	}else if(section == "BroadcastReel") {
		
		var path = "videos/editFolder/" + mov + ".flv";
	
	}else if(section == "CommercialReel") {
		
		var path = "videos/editFolder/" + mov + ".flv";

	}else if(section == "claudia") {

		var path = "videos/Claudia_Video/claudia_" + mov + ".flv";

	}else if(section == "sebastian") {

		var path = "videos/Sebastian_Video/seba_" + mov + ".flv";

	}else if(section == "greg") {

		var path = "videos/Greg_Video/greg_" + mov + ".flv";

	//}else if(section == "gustavo") {

		//var path = "videos/Gustavo_Video/gustavo_" + mov + ".flv";

	}else if(section == "stas") {

		var path = "videos/Stas_Video/stas_" + mov + ".flv";

	}else if(section == "fx") {

		var path = "videos/Graphics_FLVs/Design_" + mov + ".flv";

	}else if(section == "joe") {

		var path = "videos/Joe_Video-Audio/joe_" + mov + ".flv";

	}else if(section == "mark") {

		var path = "videos/Mark_Video-Audio/mark_" + mov + ".flv";

	}else if(section == "dave") {

		var path = "videos/Dave_Video/dave_" + mov + ".flv";

	}else if(section == "fxmotion") {

		var path = "videos/bondfx_FLVs/bondfx_" + mov + ".flv";

	}else if(section == "visualeffects") {

		var path = "videos/bondfx_FLVs/bondfx_" + mov + ".flv";

	}else if(section == "creativedirection") {

		var path = "videos/corefx_FLVs/core_" + mov + ".flv";

	}else if(section == "interactive") {

		var path = "videos/eatdrink_FLVs/eatdrink_" + mov + ".flv";

	}

	

	//alert(path);

	var flashobject = 

			"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" +

			  "codebase='http://download.macromedia.com/'  " +

			  "WIDTH='516' HEIGHT='290' id='flaMovie1'>" +

			 " <PARAM NAME=movie VALUE='" + player + "?mov=" + path + "'> " +

			 " <PARAM NAME=quality VALUE=high>" +

			 " <PARAM NAME=bgcolor VALUE=#000000> " +

			 " <EMBED src='" + player + "?mov=" + path + "' " +

			"	quality=high bgcolor=#000000 WIDTH='516' HEIGHT='290' NAME='flaMovie1'" +

			"	TYPE='application/x-shockwave-flash' " +

			"	PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>" +

			 " </EMBED>" +

			"</OBJECT>" ;

			

	$("#stage").html(flashobject).hide().fadeIn('slow');		

			

}

// ROLLOVERS

function overBG(path) {

	$("#box1 #" + path + "  #bg").addClass("transparencyBG");

	

	//$("#box1 #" + path + "  #content #text").html("<img src='images/" + path + "_on.png' />");

}

function outBG(path) {

	$("#box1 #" + path + "  #bg").removeClass("transparencyBG");

	

	//$("#box1 #" + path + "  #content #text").html("<img src='images/" + path + "_off.png' />");

}

// MAIN NAV ROLLOVERS

function overMainNav() {

	//alert('fuck 1');

	$("#navigation #menu #navAbout").html("<img src='images/about_rollover.png' />");

}

function outMainNav() {

	//alert('fuck 2');

	$("#navigation #menu #navAbout").html("<img src='images/about_off.png' />");

}

// CLOSE MAIN MENUS

function closeMainNavs() {

	 $("#navAbout").html("<img src='images/about_off.png' />");	

	 $("#navEditors").html("<img src='images/editors_off.png' />");	

	 $("#navDesign").html("<img src='images/design_off.png' />");

	 $("#navSound").html("<img src='images/sound_off.png' />");

	 $("#navContact").html("<img src='images/contact_off.png' />");

}



//===================================================================

//// START: LOGO ////////////////////////////////////////////////////

function logo(){

	closeMainNavs();

	$('#menu ul:visible').slideUp('normal');

	$("#stage").html("");

	$("#preview").html("");

	

	//rollOverOffMainNav("home");

	turnOnAllMainRollOvers();

	

	//$('#news2').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '116px' }); 

	

	var logoregular = $("#logoregular").html();

	var homepreview = $("#homePreview").html();

	var homeslideshow = $("#homeSlideShow").html();

	var generalinfo = $("#generalInfo").html();

	//var homescroller = $("#scrollhome").html();

	

	$("#logo").html(logoregular).hide().fadeIn('slow');

	$("#stage").html(homeslideshow).hide();

	//$('#portfolio2').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	$('#stage #portfolio2').cycle();

	$("#stage").fadeIn('slow');

	

	$("#preview").html(homepreview).hide();

	$('#preview #news2').cycle();

	$("#preview").fadeIn('slow');

	//$('#news2').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '116px' }); 

	//$('#portfolio2').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	

	//alert($("#stage").html());

	

	$("#box1").width(327);

	$("#box1").html(generalinfo).hide().fadeIn('slow');

	var homescroller = "";//$("#scrollhome").html();

	//$("#box2").html(homescroller).hide().fadeIn('slow');
	$("#box2").html("");

}

//// END: LOGO //////////////////////////////////////////////////////

//===================================================================



//===================================================================

//// START: ACCESS //////////////////////////////////////////////////

$(document).ready(function() {



	 $("#logo").mouseover(function() {

		$("#loginForm").fadeOut("slow");

	 });

	 $("#topContent").mouseover(function() {

		$("#loginForm").fadeOut("slow");

	 });

 

});



jQuery.fn.fadeToggle = function(speed, easing, callback) {

   return this.animate({opacity: 'toggle'}, speed, easing, callback);

}; 



function access(){

    $("#loginForm").fadeToggle()



}

//// END: ACCESS ////////////////////////////////////////////////////

//===================================================================





function close_preview() {

	$("#preview").hide();

}





//===================================================================

//// START: ABOUT ///////////////////////////////////////////////////

function about_sub_nav_off() {

	$("#subLeadership").html("<img src='images/leadership_off.png' />");

	//$("#subProducers").html("<img src='images/producers_off.png' />");

	$("#subTour").html("<img src='images/tour_off.png' />");

	$("#subBuzz").html("<img src='images/buzz_off.png' />");

	//$("#subParties").html("<img src='images/parties_off.png' />");
	$("#subEvents").html("<img src='images/events_off.png' />");

}

function about(){
	//mainNavCurrentButton = "navAbout";
	rollOverOffMainNav("navAbout");
	closeMainNavs();
	turnOnAllSubRollOvers();
	$("#navAbout").html("<img src='images/about_on.png' />").hide().fadeIn('slow');
	var generalinfo = $("#generalInfo").html();
	about_sub_nav_off();
	var logoregular = $("#logoregular").html();
	$("#logo").html(logoregular).hide().fadeIn('slow');
	$("#stage").html("");
	//$('#aboutportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 
	var aboutslideshow = $("#aboutSlideShow").html();
	$("#stage").html(aboutslideshow).hide().fadeIn('slow');
	//$('#aboutportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 
	$('#stage #aboutportfolio').cycle();
	$("#box1").width(327);
	$("#box1").html(generalinfo).hide().fadeIn('slow');
	var aboutscroller = $("#scrollabout").html();
	$("#box2").html(aboutscroller).hide().fadeIn('slow');
	$("#preview").fadeOut('slow');
}

	function sub_leadership(){

		//rollOverOffMainNav("navLeadership");

		rollOverOffSubNav("subLeadership");

		about_sub_nav_off();

		

		$("#subLeadership").html("<img src='images/leadership_on.png' />").hide().fadeIn('slow');

		

		

		

		

		var generalinfo = $("#generalInfo").html();

		var leadershiptext = $("#leadershiptext").html();

		

		$("#subLeadership").attr("src", "images/leadership_on.png");

		$("#stage").html("<img src='images/main_img_leadership.jpg' />").hide().fadeIn('slow');

		

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html(leadershiptext).hide().fadeIn('slow');

	}

	function sub_producers(){

		//rollOverOffMainNav("navProducers");

		//rollOverOffSubNav("subProducers");

		about_sub_nav_off();

		//$("#subProducers").html("<img src='images/producers_on.png' />").hide().fadeIn('slow');

		

		

		

		var generalinfo = $("#generalInfo").html();

		var producers = $("#box2Producers").html();

		//about_sub_nav_off();

		//$("#subProducers").attr("src", "images/producers_on.png");

		$("#stage").html("<img src='images/main_img_producers.jpg' />").hide().fadeIn('slow');

		

		//$("#box1").html(generalinfo).hide().fadeIn('slow');

		//$("#box2").html(producers).hide().fadeIn('slow');

		$("#stage").html("<img src='images/Stephanie_picture.jpg' />").hide().fadeIn('slow');

		$("#box2").html("<img src='images/box2Stephanie.gif' />").hide().fadeIn('slow');

	}

		function producer_stephanie() {

			$("#stage").html("<img src='images/Stephanie_picture.jpg' />").hide().fadeIn('slow');

			$("#box2").html("<img src='images/box2Stephanie.gif' />").hide().fadeIn('slow');

		}

		function producer_amy() {

			$("#stage").html("<img src='images/Amy_picture.jpg' />").hide().fadeIn('slow');

			$("#box2").html("<img src='images/box2Amy.gif' />").hide().fadeIn('slow');

		}

	function sub_tour(){

		//rollOverOffMainNav("navTours");

		rollOverOffSubNav("subTour");

		about_sub_nav_off();

		$("#subTour").html("<img src='images/tour_on.png' />").hide().fadeIn('slow');

		

		

		var generalinfo = $("#generalInfo").html();

		var tour = $("#box2Tour").html();

		//about_sub_nav_off();

		//$("#subTour").attr("src", "images/tour_on.png");

		$("#stage").html("<img src='images/main_img_dailiesSpecs.jpg' />").hide().fadeIn('slow');

		

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html(tour).hide().fadeIn('slow');

	}

		function fenvironment() {

			$("#stage").html("");

			//$('#environmentportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var environmentportfolio = $("#tourEnvironmentSlideShow").html();

			$("#stage").html(environmentportfolio).hide().fadeIn('slow');

			//$('#environmentportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #environmentportfolio').cycle();

		}

		function fedit1() {

			$("#stage").html("");

			//$('#edit1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var edit1portfolio = $("#tourEdit1SlideShow").html();

			$("#stage").html(edit1portfolio).hide().fadeIn('slow');

			//$('#edit1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #edit1portfolio').cycle();

		}

		function fedit2() {

			$("#stage").html("");

			//$('#edit2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var edit2portfolio = $("#tourEdit2SlideShow").html();

			$("#stage").html(edit2portfolio).hide().fadeIn('slow');

			//$('#edit2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #edit2portfolio').cycle();

		}

		function fedit3() {

			$("#stage").html("");

			//$('#edit3portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var edit3portfolio = $("#tourEdit3SlideShow").html();

			$("#stage").html(edit3portfolio).hide().fadeIn('slow');

			//$('#edit3portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #edit3portfolio').cycle();

		}

		function fedit4() {

			$("#stage").html("");

			//$('#edit4portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var edit4portfolio = $("#tourEdit4SlideShow").html();

			$("#stage").html(edit4portfolio).hide().fadeIn('slow');

			//$('#edit4portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #edit4portfolio').cycle();

		}

		function fedit5() {

			$("#stage").html("");

			//$('#edit5portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var edit5portfolio = $("#tourEdit5SlideShow").html();

			$("#stage").html(edit5portfolio).hide().fadeIn('slow');

			//$('#edit5portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #edit5portfolio').cycle();

		}

		function fgraphics1() {

			$("#stage").html("");

			//$('#fx1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var fx1portfolio = $("#tourFx1SlideShow").html();

			$("#stage").html(fx1portfolio).hide().fadeIn('slow');

			//$('#fx1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' });

			$('#stage #fx1portfolio').cycle();

		}

		function fgraphics2() {

			$("#stage").html("");

			//$('#fx2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var fx2portfolio = $("#tourFx2SlideShow").html();

			$("#stage").html(fx2portfolio).hide().fadeIn('slow');

			//$('#fx2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #fx2portfolio').cycle();

		}

		function faudio1() {

			$("#stage").html("");

			//$('#audio1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var audio1portfolio = $("#tourAudio1SlideShow").html();

			$("#stage").html(audio1portfolio).hide().fadeIn('slow');

			//$('#audio1portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #audio1portfolio').cycle();

		}

		function faudio2() {

			$("#stage").html("");

			//$('#audio2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			var audio2portfolio = $("#tourAudio2SlideShow").html();

			$("#stage").html(audio2portfolio).hide().fadeIn('slow');

			//$('#audio2portfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

			$('#stage #audio2portfolio').cycle();

		}

	function sub_buzz(){

		//rollOverOffMainNav("navBuzz");

		rollOverOffSubNav("subBuzz");

		about_sub_nav_off();

		$("#subBuzz").html("<img src='images/buzz_on.png' />").hide().fadeIn('slow');

		

		

		var generalinfo = $("#generalInfo").html();

		var buzz = $("#box2Buzz").html();

		//about_sub_nav_off();

		//$("#subBuzz").attr("src", "images/buzz_on.png");

		$("#stage").html("<img src='images/main_img_buzz.jpg' />").hide().fadeIn('slow');

		

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html(buzz).hide().fadeIn('slow');

	}	

		

		function fbestads() {

			window.open("http://www.bestadsontv.com/ad_details.php?id=21024");

		}

		function fprosound() {

			window.open("http://www.bondedit.com/pdfs/Page37_PRO_10_08_FinalB.pdf");

		}

		function fsource() {

			window.open("http://www.sourceecreative.com/news.php?ID=3026");

		}

		function fstudio() {

			window.open("http://studiodaily.com/studiomonthly/currentissue/9760.html");

		}

		function fdigital() {

			window.open("http://forums.digitalmedianet.com/articles/viewarticle.jsp?id=414514");

		}

		function fanimation() {

			window.open("http://animationartist.digitalmedianet.com/articles/viewarticle.jsp?id=413857");

		}

		function fshoot() {

			window.open("http://www.bondedit.com/_pdfs/BOND-Shoot_Reda-Walker-02-08.pdf");

		}

		function fshootpr() {

			window.open("http://www.shootonline.com/go/index.php?name=Release&op=view&id=rs-web2-1416166-1246291039-2");

		}

		function fshoottt() {

			window.open("http://www.shootonline.com/go/index.php?name=Release&op=view&id=rs-web2-2515143-1263839267-2");

		}

	//function sub_parties(){
	function sub_events(){

		//rollOverOffMainNav("navParties");

		//rollOverOffSubNav("subParties");
		rollOverOffSubNav("subEvents");

		about_sub_nav_off();

		///$("#subParties").html("<img src='images/parties_on.png' />").hide().fadeIn('slow');
		$("#subEvents").html("<img src='images/events_on.png' />").hide().fadeIn('slow');
		

		

		var generalinfo = $("#generalInfo").html();

		//var parties = $("#box2Parties").html();
		var events = $("#box2Events").html();

		//about_sub_nav_off();

		//$("#subParties").attr("src", "images/parties_on.png");

		$("#stage").html("<img src='images/main_img_events.jpg' />").hide().fadeIn('slow');

		

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html(events).hide().fadeIn('slow');

	}

		function change() {

			window.open("http://www.bondedit.com/2009_party_for_change/");

		}

		function fvalentines2008() {

			window.open("http://www.bondedit.com/valentines_party_2008/");

		}

		function fholidayparty2007() {

			window.open("http://bondedit.com/2007holidaypartyphotos/");

		}

		//function ahaa() {

		//	window.open("http://bondedit.com/ahaa_party_2007/");

		//}
		function fSheSays() {

			window.open("http://www.facebook.com/album.php?aid=212675&l=cd5202a037&id=98402910714");

		}

		//function fvalentines2007() {

		//	window.open("http://www.bondedit.com/valentines_party_2007/");

		//}
		function fFAB() {

			window.open("http://www.facebook.com/album.php?aid=175472&l=89dfdc9f7a&id=98402910714");

		}

		function fsummerparty2009() {

			window.open("http://www.bondedit.com/bondshow/BOND_Sizzlin_Summer/My_Albums/Pages/Sizzlin_Summer_Shindig.html#0");

		}

		function wtf() {

			window.open("http://www.bondedit.com/wtf_party/");

		}

//// END: ABOUT /////////////////////////////////////////////////////

//===================================================================



//===================================================================

//// START: EDITORS /////////////////////////////////////////////////

function editors_sub_nav_off() {

	//$("#subClaudia").attr("src", "images/claudia_off.png");

	//$("#subSebastian").attr("src", "images/sebastian_off.png");

	//$("#subGreg").attr("src", "images/greg_off.png");

	//$("#subGustavo").attr("src", "images/gustavo_off.png");

	//$("#subStas").attr("src", "images/stas_off.png");

	$("#subBroadcast").html("<img src='images/BroadcastReel_off.png' />");
	$("#subCommercial").html("<img src='images/CommercialReel_off.png' />");

	//$("#subClaudia").html("<img src='images/claudia_off.png' />");

	//$("#subSebastian").html("<img src='images/sebastian_off.png' />");

	//$("#subGreg").html("<img src='images/greg_off.png' />");

	//$("#subGustavo").html("<img src='images/gustavo_off.png' />");

	//$("#subStas").html("<img src='images/stas_off.png' />");

	//$("#subDave").html("<img src='images/dave_off.png' />");

}

function editors(){
	//mainNavCurrentButton = "navEditors";
	editors_sub_nav_off();
	rollOverOffMainNav("navEditors");
	closeMainNavs();
	turnOnAllSubRollOvers();
	$("#navEditors").html("<img src='images/editors_on.png' />").hide().fadeIn('slow');
	$("#box1").width(367);
	var logoregular = $("#logoregular").html();
	$("#logo").html(logoregular).hide().fadeIn('slow');
	var generalinfo = $("#generalInfo").html();
	$("#preview").fadeOut('slow');
	var editorshome = $("#editorshome").html();
	$("#stage").html(editorshome).hide().fadeIn('slow');
	$("#box1").html(generalinfo).hide().fadeIn('slow');
	$("#box2").html("&nbsp;").hide().fadeIn('slow');
}

	function sub_broadcast() {
		
		rollOverOffSubNav("subBroadcast");
		
		$("#subBroadcast").html("<img src='images/BroadcastReel_off.png' />");
		$("#subCommercial").html("<img src='images/CommercialReel_off.png' />");
		
		$("#subBroadcast").html("<img src='images/BroadcastReel_on.png' />").hide().fadeIn('slow');
		
		//$("#box1").html(generalinfo).hide().fadeIn('slow');
		
		$("#box2").html("");
		$("#stage").html("");
		viewMovie('Broadcast_Reel','BroadcastReel','wide');
		
		
	}
	function sub_commercial() {
		
		rollOverOffSubNav("subCommercial");
		
		$("#subBroadcast").html("<img src='images/BroadcastReel_off.png' />");
		$("#subCommercial").html("<img src='images/CommercialReel_off.png' />");
		
		$("#subCommercial").html("<img src='images/CommercialReel_on.png' />").hide().fadeIn('slow');
		
		//$("#box1").html(generalinfo).hide().fadeIn('slow');
		
		$("#box2").html("");
		$("#stage").html("");
		viewMovie('Commercial_Reel','CommercialReel','wide');
		
		
	}

/*
	function sub_claudia(){

		

		

		rollOverOffSubNav("subClaudia");

		editors_sub_nav_off();

		$("#subClaudia").html("<img src='images/claudia_on.png' />").hide().fadeIn('slow');

		

		var claudialist = $("#editorsclaudia").html();

		var claudiabox2 = $("#claudiaBox2").html();

		

		$("#stage").html("<img src='images/Claudia_large_image.jpg' />").hide().fadeIn('slow');

		$("#box1").html(claudialist).hide().fadeIn('slow');

		

		$("#box2").html(claudiabox2).hide().fadeIn('slow');

		

	}

		function claudiacloselinksbox1() {

			$("#box1 #claudia_stress #bg").removeClass("clickedtransparencyBG");

			$("#box1 #claudia_stress  #content #text").html("<img src='images/claudia_stress_off.png' />");

			$("#box1 #claudia_bend #bg").removeClass("clickedtransparencyBG");

			$("#box1 #claudia_bend  #content #text").html("<img src='images/claudia_bend_off.png' />");

			$("#box1 #claudia_pret #bg").removeClass("clickedtransparencyBG");

			$("#box1 #claudia_pret  #content #text").html("<img src='images/claudia_pret_off.png' />");

			$("#box1 #claudia_pantene #bg").removeClass("clickedtransparencyBG");

			$("#box1 #claudia_pantene  #content #text").html("<img src='images/claudia_pantene_off.png' />");

			//$("#box1 #claudia_martini #bg").removeClass("clickedtransparencyBG");

			//$("#box1 #claudia_martini  #content #text").html("<img src='images/claudia_martini_off.png' />");

			//$("#box1 #claudia_want_to_be #bg").removeClass("clickedtransparencyBG");

			//$("#box1 #claudia_want_to_be  #content #text").html("<img src='images/claudia_want_to_be_off.png' />");

			$("#box1 #claudia_personal_grooming #bg").removeClass("clickedtransparencyBG");

			$("#box1 #claudia_personal_grooming  #content #text").html("<img src='images/claudia_personal_grooming_off.png' />");

		}

		function claudiaclicked(id) {

			claudiacloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "claudia_stress") {

				$("#stage").html("");

			}else if(id == "claudia_bend") {

				$("#stage").html("");

			}else if(id == "claudia_pret") {

				$("#stage").html("");

			}else if(id == "claudia_pantene") {

				$("#stage").html("");

			

			}else if(id == "claudia_personal_grooming") {

				$("#stage").html("");

			}

		}

	function sub_sebastian(){

		

		rollOverOffSubNav("subSebastian");

		editors_sub_nav_off();

		$("#subSebastian").html("<img src='images/sebastian_on.png' />").hide().fadeIn('slow');

		

		var sebastianlist = $("#editorssebastian").html();

		var sebastianbox2 = $("#sebastianBox2").html();

		//editors_sub_nav_off();

		//$("#subSebastian").attr("src", "images/sebastian_on.png");

		$("#stage").html("<img src='images/Sebastian_large_image.jpg' />").hide().fadeIn('slow');

		$("#box1").html(sebastianlist).hide().fadeIn('slow');

		$("#box2").html(sebastianbox2).hide().fadeIn('slow');

	}

		function sebastiancloselinksbox1() {

			$("#box1 #sebastian_red_dog #bg").removeClass("clickedtransparencyBG");

			$("#box1 #sebastian_red_dog  #content #text").html("<img src='images/sebastian_red_dog_off.png' />");

			$("#box1 #sebastian_fiesta #bg").removeClass("clickedtransparencyBG");

			$("#box1 #sebastian_fiesta  #content #text").html("<img src='images/sebastian_fiesta_off.png' />");

			$("#box1 #sebastian_sprint #bg").removeClass("clickedtransparencyBG");

			$("#box1 #sebastian_sprint  #content #text").html("<img src='images/sebastian_sprint_off.png' />");

			$("#box1 #sebastian_airline_dog #bg").removeClass("clickedtransparencyBG");

			$("#box1 #sebastian_airline_dog  #content #text").html("<img src='images/sebastian_airline_dog_off.png' />");

			$("#box1 #sebastian_census #bg").removeClass("clickedtransparencyBG");

			$("#box1 #sebastian_census  #content #text").html("<img src='images/sebastian_census_off.png' />");

		}

		function sebastianclicked(id) {

			sebastiancloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "sebastian_red_dog") {

				$("#stage").html("");

			}else if(id == "sebastian_fiesta"){

				$("#stage").html("");

			}else if(id == "sebastian_sprint"){

				$("#stage").html("");

			}else if(id == "sebastian_airline_dog"){

				$("#stage").html("");

			}else if(id == "sebastian_census"){

				$("#stage").html("");

			}

		}

	function sub_greg(){

		

		rollOverOffSubNav("subGreg");

		editors_sub_nav_off();

		$("#subGreg").html("<img src='images/greg_on.png' />").hide().fadeIn('slow');

		

		var greglist = $("#editorsgreg").html();

		var gregbox2 = $("#gregBox2").html();

		//editors_sub_nav_off();

		//$("#subGreg").attr("src", "images/greg_on.png");

		$("#stage").html("<img src='images/Greg_large_image.jpg' />").hide().fadeIn('slow');

		$("#box1").html(greglist).hide().fadeIn('slow');

		$("#box2").html(gregbox2).hide().fadeIn('slow');

	}

		function gregcloselinksbox1() {

			$("#box1 #greg_cc_mm #bg").removeClass("clickedtransparencyBG");

			$("#box1 #greg_cc_mm  #content #text").html("<img src='images/greg_cc_mm_off.png' />");

			$("#box1 #greg_anthem1 #bg").removeClass("clickedtransparencyBG");

			$("#box1 #greg_anthem1  #content #text").html("<img src='images/greg_anthem1_off.png' />");

			$("#box1 #greg_casual #bg").removeClass("clickedtransparencyBG");

			$("#box1 #greg_casual  #content #text").html("<img src='images/greg_casual_off.png' />");

			$("#box1 #greg_suburbia #bg").removeClass("clickedtransparencyBG");

			$("#box1 #greg_suburbia  #content #text").html("<img src='images/greg_suburbia_off.png' />");

			$("#box1 #greg_cellphone #bg").removeClass("clickedtransparencyBG");

			$("#box1 #greg_cellphone  #content #text").html("<img src='images/greg_cellphone_off.png' />");

		}

		function gregclicked(id) {

			gregcloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "greg_cc_mm") {

				$("#stage").html("");

			}else if(id == "greg_anthem1") {

				$("#stage").html("");

			}else if(id == "greg_casual") {

				$("#stage").html("");

			}else if(id == "greg_suburbia") {

				$("#stage").html("");

			}else if(id == "greg_cellphone") {

				$("#stage").html("");

			}

		}

	function sub_gustavo(){

		

		rollOverOffSubNav("subGustavo");

		editors_sub_nav_off();

		$("#subGustavo").html("<img src='images/gustavo_on.png' />").hide().fadeIn('slow');

		

		var gustavolist = $("#editorsgustavo").html();

		var gustavobox2 = $("#gustavoBox2").html();

		//editors_sub_nav_off();

		//$("#subGustavo").attr("src", "images/gustavo_on.png");

		$("#stage").html("<img src='images/Gustavo_large_image.jpg' />").hide().fadeIn('slow');

		$("#box1").html(gustavolist).hide().fadeIn('slow');

		$("#box2").html(gustavobox2).hide().fadeIn('slow');

	}

		function gustavocloselinksbox1() {

			$("#box1 #gustavo_ranch #bg").removeClass("clickedtransparencyBG");

			$("#box1 #gustavo_ranch  #content #text").html("<img src='images/gustavo_ranch_off.png' />");

			$("#box1 #gustavo_danny #bg").removeClass("clickedtransparencyBG");

			$("#box1 #gustavo_danny  #content #text").html("<img src='images/gustavo_danny_off.png' />");

			$("#box1 #gustavo_juliet #bg").removeClass("clickedtransparencyBG");

			$("#box1 #gustavo_juliet  #content #text").html("<img src='images/gustavo_juliet_off.png' />");

			$("#box1 #gustavo_quest #bg").removeClass("clickedtransparencyBG");

			$("#box1 #gustavo_quest  #content #text").html("<img src='images/gustavo_quest_off.png' />");

			$("#box1 #gustavo_saturday #bg").removeClass("clickedtransparencyBG");

			$("#box1 #gustavo_saturday  #content #text").html("<img src='images/gustavo_saturday_off.png' />");

		}

		function gustavoclicked(id) {

			gustavocloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "gustavo_ranch") {

				$("#stage").html("");

			}else if(id == "gustavo_danny") {

				$("#stage").html("");

			}else if(id == "gustavo_juliet") {

				$("#stage").html("");

			}else if(id == "gustavo_quest") {

				$("#stage").html("");

			}else if(id == "gustavo_saturday") {

				$("#stage").html("");

			}

		}

	function sub_stas(){

		

		rollOverOffSubNav("subStas");

		editors_sub_nav_off();

		$("#subStas").html("<img src='images/stas_on.png' />").hide().fadeIn('slow');

		

		var staslist = $("#editorsstas").html();

		var stasbox2 = $("#stasBox2").html();

		//editors_sub_nav_off();

		//$("#subStas").attr("src", "images/stas_on.png");

		$("#stage").html("<img src='images/Stas_large_image.jpg' />").hide().fadeIn('slow');

		$("#box1").html(staslist).hide().fadeIn('slow');

		$("#box2").html(stasbox2).hide().fadeIn('slow');

	}

		function stascloselinksbox1() {

			$("#box1 #stas_asics #bg").removeClass("clickedtransparencyBG");

			$("#box1 #stas_asics  #content #text").html("<img src='images/stas_asics_off.png' />");

			$("#box1 #stas_gotham #bg").removeClass("clickedtransparencyBG");

			$("#box1 #stas_gotham  #content #text").html("<img src='images/stas_gotham_off.png' />");

			$("#box1 #stas_waiter #bg").removeClass("clickedtransparencyBG");

			$("#box1 #stas_waiter  #content #text").html("<img src='images/stas_waiter_off.png' />");

			$("#box1 #stas_airplane #bg").removeClass("clickedtransparencyBG");

			$("#box1 #stas_airplane  #content #text").html("<img src='images/stas_airplane_off.png' />");

			$("#box1 #stas_joe #bg").removeClass("clickedtransparencyBG");

			$("#box1 #stas_joe  #content #text").html("<img src='images/stas_joe_off.png' />");

		}

		function stasclicked(id) {

			stascloselinksbox1();

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "stas_asics") {

				$("#stage").html("");

			}else if(id == "stas_gotham") {

				$("#stage").html("");

			}else if(id == "stas_waiter") {

				$("#stage").html("");

			}else if(id == "stas_stepbrothers") {

				$("#stage").html("");

			}else if(id == "stas_joe") {

				$("#stage").html("");

			}

		}

	function sub_dave(){

		

		rollOverOffSubNav("subDave");

		editors_sub_nav_off();

		$("#subDave").html("<img src='images/dave_on.png' />").hide().fadeIn('slow');

		

		$("#stage").html("<img src='images/dave_large_image.jpg' />").hide().fadeIn('slow');

		var davelist = $("#editorsdave").html();

		$("#box1").html(davelist).hide().fadeIn('slow');

		var davebox2 = $("#daveBox2").html();

		$("#box2").html(davebox2).hide().fadeIn('slow');

		

	}

		function davecloselinksbox1() {

			$("#box1 #dave_hamberger #bg").removeClass("clickedtransparencyBG");

			$("#box1 #dave_hamberger  #content #text").html("<img src='images/dave_hamberger_off.png' />");

			$("#box1 #dave_iam #bg").removeClass("clickedtransparencyBG");

			$("#box1 #dave_iam  #content #text").html("<img src='images/dave_iam_off.png' />");

			$("#box1 #dave_oldspice #bg").removeClass("clickedtransparencyBG");

			$("#box1 #dave_oldspice  #content #text").html("<img src='images/dave_oldspice_off.png' />");

			$("#box1 #dave_amex #bg").removeClass("clickedtransparencyBG");

			$("#box1 #dave_amex  #content #text").html("<img src='images/dave_amex_off.png' />");

			$("#box1 #dave_hallmark #bg").removeClass("clickedtransparencyBG");

			$("#box1 #dave_hallmark  #content #text").html("<img src='images/dave_hallmark_off.png' />");

		}

	

		function daveclicked(id) {

			

			davecloselinksbox1();

			

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "dave_hamberger") {

				$("#stage").html("");

			}else if(id == "dave_iam") {

				$("#stage").html("");

			}else if(id == "dave_oldspice") {

				$("#stage").html("");

			}else if(id == "dave_amex") {

				$("#stage").html("");

			}else if(id == "dave_hallmark") {

				$("#stage").html("");

			}

		}
*/
		

//// END: EDITORS ///////////////////////////////////////////////////

//===================================================================



//===================================================================

//// START: DESIGNFX ////////////////////////////////////////////////

function designfx_sub_nav_off() {

	$("#subVisualEffects").html("<img src='images/visualeffects_off.png' />");

	//$("#subCreativeDirection").html("<img src='images/creativedirection_off.png' />");

	$("#subInteractive").html("<img src='images/interactive_off.png' />");

}

function designfxxx(){

	

	designfx_sub_nav_off();

	//mainNavCurrentButton = "navDesign";

	closeMainNavs();

	$("#navDesign").html("<img src='images/design_on.png' />").hide().fadeIn('slow');

	rollOverOffMainNav("navDesign");
	turnOnAllSubRollOvers();

	
	var logofx = $("#logofx").html();
	$("#logo").html(logofx).hide().fadeIn('slow');

	//$("#box1").width(327);

	//var fxlist = $("#fx").html();

	//$('#fxportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	//$('#fxportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	//$("#stage").html("<img src='images/Stas_large_image.jpg' />").hide().fadeIn('slow');

	//$("#box1").width(327);	

	//$("#box1").html(fxlist).hide().fadeIn('slow');

	$("#preview").fadeOut('slow');

	$("#stage").html("");
	var fxslideshow = $("#fxSlideShow").html();
	$("#stage").html(fxslideshow).hide().fadeIn('slow');
	$('#stage #fxportfolio').cycle();
	//viewMovie('10','joe','wide');

	var fxplayer = "flvPlayerNoSkin.swf";

	var path = "videos/fxhome_FLVs/design_collective_intro.flv";

	var fxflashobject = 

			"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'" +

			  "codebase='http://download.macromedia.com/'  " +

			  "WIDTH='516' HEIGHT='290' id='flaMovie1'>" +

			 " <PARAM NAME=movie VALUE='" + fxplayer + "?mov=" + path + "'> " +

			 " <PARAM NAME=quality VALUE=high>" +

			 " <PARAM NAME=bgcolor VALUE=#000000> " +

			 " <EMBED src='" + fxplayer + "?mov=" + path + "' " +

			"	quality=high bgcolor=#000000 WIDTH='516' HEIGHT='290' NAME='flaMovie1'" +

			"	TYPE='application/x-shockwave-flash' " +

			"	PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>" +

			 " </EMBED>" +

			"</OBJECT>" ;

	$("#stage").html(fxflashobject).hide().fadeIn('slow');

	var homeFX = $("#homeFX").html();

	$("#box2").html(homeFX).hide().fadeIn('slow');

	$("#box1").width(327);
	var generalinfo = $("#generalInfo").html();
	$("#box1").html(generalinfo).hide().fadeIn('slow');
}



	//function sub_visualeffects(){
	function designfx(){

		closeMainNavs();
		$('#menu ul:visible').slideUp('normal');
		//alert("asdf");
		//rollOverOffSubNav("subVisualEffects");
		//rollOverOffSubNav("navDesign");
		rollOverOffMainNav("navDesign");
		turnOnAllSubRollOvers();
		designfx_sub_nav_off();
		
		$("#navDesign").html("<img src='images/design_on.png' />").hide().fadeIn('slow');
		
		$("#preview").fadeOut('slow');
		var logofx = $("#logofx").html();
		$("#logo").html(logofx).hide().fadeIn('slow');
		
		//$("#subVisualEffects").html("<img src='images/visualeffects_on.png' />").hide().fadeIn('slow');

		

		$("#stage").html("");

		var fxslideshow = $("#fxVisualEffectsSlideShow").html();

		$("#stage").html(fxslideshow).hide().fadeIn('slow');

		$('#stage #cycleit').cycle();

		

		var visualeffectslist = $("#fxVisualEffects").html();

		$("#box1").html(visualeffectslist).hide().fadeIn('slow');

		var visualEffects = $("#homeVisualEffects").html();

		$("#box2").html(visualEffects).hide().fadeIn('slow');

		

	}

	/*

	function sub_creativedirection(){

		

		rollOverOffSubNav("subCreativeDirection");

		designfx_sub_nav_off();

		$("#subCreativeDirection").html("<img src='images/creativedirection_on.png' />").hide().fadeIn('slow');

		

		$("#stage").html("");

		var fxslideshow = $("#fxCreativeDirectionSlideShow").html();

		$("#stage").html(fxslideshow).hide().fadeIn('slow');

		$('#stage #cycleit').cycle();

		

		var creativedirection = $("#fxCreativeDirection").html();

		$("#box1").html(creativedirection).hide().fadeIn('slow');

		var homeCreativeDirection = $("#homeCreativeDirection").html();

		$("#box2").html(homeCreativeDirection).hide().fadeIn('slow');

		

	}

	*/

	function sub_interactive(){

		

		rollOverOffSubNav("subInteractive");

		designfx_sub_nav_off();

		$("#subInteractive").html("<img src='images/interactive_on.png' />").hide().fadeIn('slow');

		

		$("#stage").html("");

		var fxslideshow = $("#fxInteractiveSlideShow").html();

		$("#stage").html(fxslideshow).hide().fadeIn('slow');

		$('#stage #cycleit').cycle();

		

		var interactive = $("#fxInteractive").html();

		$("#box1").html(interactive).hide().fadeIn('slow');

		var homeInteractive = $("#homeInteractive").html();

		$("#box2").html(homeInteractive).hide().fadeIn('slow');

		

	}

	function fxcloselinksbox1() {

		//$("#box1 #fxdesign #bg").removeClass("clickedtransparencyBG");

		//$("#box1 #fxdesign  #content #text").html("<img src='images/fxdesign_off.png' />");

		//$("#box1 #fxpicture #bg").removeClass("clickedtransparencyBG");

		//$("#box1 #fxpicture  #content #text").html("<img src='images/fxpicture_off.png' />");

		//$("#box1 #fxspangler #bg").removeClass("clickedtransparencyBG");

		//$("#box1 #fxspangler  #content #text").html("<img src='images/fxspangler_off.png' />");

		

		$("#box1 #effects_motion #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_motion  #content #text").html("<img src='images/effects_motion_off.png' />");

		$("#box1 #effects_visual #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_visual  #content #text").html("<img src='images/effects_visual_off.png' />");

		$("#box1 #effects_senior #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_senior  #content #text").html("<img src='images/effects_senior_off.png' />");

		

		$("#box1 #effects_direction #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_direction  #content #text").html("<img src='images/effects_direction_off.png' />");

		$("#box1 #effects_concepts #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_concepts  #content #text").html("<img src='images/effects_concepts_off.png' />");

		$("#box1 #effects_creativedirector #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_creativedirector  #content #text").html("<img src='images/effects_creativedirector_off.png' />");

		

		$("#box1 #effects_interactive #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_interactive  #content #text").html("<img src='images/effects_interactive_off.png' />");

		$("#box1 #effects_3d #bg").removeClass("clickedtransparencyBG");

		$("#box1 #effects_3d  #content #text").html("<img src='images/effects_3d_off.png' />");

	}

	function fxclicked(id) {

		fxcloselinksbox1()

		$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

		$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

		

		if(id == "effects_motion") {

			

			var visualEffects = $("#homeVisualEffects").html();

			$("#box2").html(visualEffects).hide().fadeIn('slow');

			

		}else if(id == "effects_visual") {

			

			var visualEffects = $("#homeVisualEffects").html();

			$("#box2").html(visualEffects).hide().fadeIn('slow');

			

		}else if(id == "effects_senior") {

			

			$("#stage").html("<img src='images/Spang_Main_image.jpg' />").hide().fadeIn('slow');

			var homeSenior = $("#homeSenior").html();

			$("#box2").html(homeSenior).hide().fadeIn('slow');

			

		}else if(id == "effects_direction") {

			

			var homeCreativeDirection = $("#homeCreativeDirection").html();

			$("#box2").html(homeCreativeDirection).hide().fadeIn('slow');

			

		}else if(id == "effects_concepts") {

			

			var homeCreativeDirection = $("#homeCreativeDirection").html();

			$("#box2").html(homeCreativeDirection).hide().fadeIn('slow');

			

		}else if(id == "effects_creativedirector") {

			

			var homeCreativeDirector = $("#homeCreativeDirector").html();

			$("#box2").html(homeCreativeDirector).hide().fadeIn('slow');

			

			$("#stage").html("<img src='images/chris_large_image.jpg' />").hide().fadeIn('slow');

			

		}else if(id == "effects_interactive") {

			

			var homeInteractive = $("#homeInteractive").html();

			$("#box2").html(homeInteractive).hide().fadeIn('slow');

			

		}else if(id == "effects_3d") {

			

			var homeInteractive = $("#homeInteractive").html();

			$("#box2").html(homeInteractive).hide().fadeIn('slow');

			

		}

	}

	

	

//// END: DESIGNFX //////////////////////////////////////////////////

//===================================================================



//===================================================================

//// START: SOUND ///////////////////////////////////////////////////

function sound_sub_nav_off() {

	//$("#subJoe").attr("src", "images/joe_button_off.png");

	//$("#subMark").attr("src", "images/mark_button_off.png");

	

	$("#subJoe").html("<img src='images/joe_off.png' />");

	$("#subMark").html("<img src='images/mark_off.png' />");

}

function sound(){

	//mainNavCurrentButton = "navSound";

	closeMainNavs();

	

	rollOverOffMainNav("navSound");

	

	sound_sub_nav_off();

	turnOnAllSubRollOvers();

	$("#navSound").html("<img src='images/sound_on.png' />").hide().fadeIn('slow');

	//sound_sub_nav_off();

	$("#preview").fadeOut('slow');

	var generalinfo = $("#generalInfo").html();

	

	var logoaudio = $("#logoaudio").html();

	$("#logo").html(logoaudio).hide().fadeIn('slow');

	

	$("#stage").html("");

	//$('#soundportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

	var soundslideshow = $("#soundSlideShow").html();

	$("#stage").html(soundslideshow).hide().fadeIn('slow');

	//$('#soundportfolio').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' });

	$('#stage #soundportfolio').cycle();

	

	$("#box1").width(327);	

	$("#box1").html(generalinfo).hide().fadeIn('slow');

	$("#box2").html("<img src='images/audio_main_text.gif' />").hide().fadeIn('slow');

}

	function sub_joe(){

		

		rollOverOffSubNav("subJoe");

		sound_sub_nav_off();

		$("#subJoe").html("<img src='images/joe_on.png' />").hide().fadeIn('slow');

		

		var joelist = $("#soundjoe").html();

		var joetext = $("#joetext").html();

		//sound_sub_nav_off();

		//$("#subJoe").attr("src", "images/joe_button_on.png");

		

		//$("#stage").html("");

		//$('#soundportfoliojoe').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

		//var soundslideshowjoe = $("#soundSlideShowJoe").html();

		$("#stage").html("<img src='images/Joe_main_image.jpg' />").hide().fadeIn('slow');

		//$('#soundportfoliojoe').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' });

		//$('#stage #soundportfoliojoe').cycle();

		

		//$("#stage").html("&nbsp;").hide().fadeIn('slow');

		$("#box1").html(joelist).hide().fadeIn('slow');

		$("#box2").html(joetext).hide().fadeIn('slow');

	}

		function joecloselinksbox1() {

			/*

			$("#box1 #joe_tecate #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_tecate  #content #text").html("<img src='images/joe_tecate_off.png' />");

			$("#box1 #joe_heineken_rain #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_rain  #content #text").html("<img src='images/joe_heineken_rain_off.png' />");

			$("#box1 #joe_wendys #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_wendys  #content #text").html("<img src='images/joe_wendys_off.png' />");

			$("#box1 #joe_heineken_dominoe #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_dominoe  #content #text").html("<img src='images/joe_heineken_dominoe_off.png' />");

			$("#box1 #joe_heineken_language #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_language  #content #text").html("<img src='images/joe_heineken_language_off.png' />");

			$("#box1 #joe_nyt #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_nyt  #content #text").html("<img src='images/joe_nyt_off.png' />");

			$("#box1 #joe_mod #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_mod  #content #text").html("<img src='images/joe_mod_off.png' />");

			$("#box1 #joe_home_depot #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_home_depot  #content #text").html("<img src='images/joe_home_depot_off.png' />");

			*/

			

			$("#box1 #joe_nfl #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_nfl  #content #text").html("<img src='images/nfl_text_OFF.png' />");

			

			$("#box1 #joe_wendys_bull #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_wendys_bull  #content #text").html("<img src='images/wndy_text_OFF.png' />");

			

			$("#box1 #joe_time #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_time  #content #text").html("<img src='images/time_text_OFF.png' />");

			

			$("#box1 #joe_cosby #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_cosby  #content #text").html("<img src='images/cosby_text_OFF.png' />");

			

			$("#box1 #joe_heineken_rep #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_rep  #content #text").html("<img src='images/heineken_text_OFF.png' />");

			

			

			

			$("#box1 #joe_optimum #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_optimum  #content #text").html("<img src='images/opti_text_OFF.png' />");

			

			$("#box1 #joe_heineken_soccer #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_soccer  #content #text").html("<img src='images/soccer_text_OFF.png' />");

			

			$("#box1 #joe_mod_fighting #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_mod_fighting  #content #text").html("<img src='images/mod_text_OFF.png' />");

			

			$("#box1 #joe_heineken_argentinean #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_heineken_argentinean  #content #text").html("<img src='images/argentin_text_OFF.png' />");

			

			$("#box1 #joe_wendys_coworkers #bg").removeClass("clickedtransparencyBG");

			$("#box1 #joe_wendys_coworkers  #content #text").html("<img src='images/cowrkr_text_OFF.png' />");

			

		}

		function joeclicked(id) {

			joecloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "joe_nfl") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/nfl_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_wendys_bull") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/wndy_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_time") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/time_text_ON.png' />");

				$("#box2 #award1").html("<img src='images/hcaa_award_silver.png' />");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_cosby") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/cosby_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_heineken_rep") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/heineken_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			

			}else if(id == "joe_optimum") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/opti_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_heineken_soccer") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/soccer_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_mod_fighting") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/mod_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "joe_heineken_argentinean") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/argentin_text_ON.png' />");

				$("#box2 #award1").html("<img src='images/ahaa_bis_gold.png' />");

				$("#box2 #award2").html("<img src='images/radio_mercury_red.png' />");

			}else if(id == "joe_wendys_coworkers") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/cowrkr_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}

			/*

			}else if(id == "joe_tecate") {

				$("#stage").html("");

			}else if(id == "joe_heineken_rain") {

				$("#stage").html("");

			}else if(id == "joe_wendys") {

				$("#stage").html("");

			}else if(id == "joe_heineken_dominoe") {

				$("#stage").html("");

			}else if(id == "joe_heineken_language") {

				$("#stage").html("");

			}else if(id == "joe_nyt") {

				$("#stage").html("");

			}else if(id == "joe_optimum") {

				$("#stage").html("");

			}else if(id == "joe_mod") {

				$("#stage").html("");

			}else if(id == "joe_home_depot") {

				$("#stage").html("");

			}

			*/

		}

	function sub_mark(){

		

		rollOverOffSubNav("subMark");

		sound_sub_nav_off();

		$("#subMark").html("<img src='images/mark_on.png' />").hide().fadeIn('slow');

		

		var marklist = $("#soundmark").html();

		//sound_sub_nav_off();

		//$("#subMark").attr("src", "images/mark_button_on.png");

		var marktext = $("#marktext").html();

		//$("#stage").html("");

		//$('#soundportfoliomark').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' }); 

		//var soundslideshowmark = $("#soundSlideShowMark").html();

		$("#stage").html("<img src='images/Mark_main_image.jpg' />").hide().fadeIn('slow');

		//$('#soundportfoliomark').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '290px' });

		//$('#stage #soundportfoliomark').cycle();

		

		//$("#stage").html("&nbsp;").hide().fadeIn('slow');

		$("#box1").html(marklist).hide().fadeIn('slow');

		$("#box2").html(marktext).hide().fadeIn('slow');

	}

		function markcloselinksbox1() {

			/*

			$("#box1 #mark_mtv #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_mtv  #content #text").html("<img src='images/mark_mtv_off.png' />");

			$("#box1 #mark_sprint #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_sprint  #content #text").html("<img src='images/mark_sprint_off.png' />");

			$("#box1 #mark_mls #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_mls  #content #text").html("<img src='images/mark_mls_off.png' />");

			$("#box1 #mark_comedy_central #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_comedy_central  #content #text").html("<img src='images/mark_comedy_central_off.png' />");

			$("#box1 #mark_direct_tv #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_direct_tv  #content #text").html("<img src='images/mark_direct_tv_off.png' />");

			*/

			

			

			$("#box1 #mark_wwf #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_wwf  #content #text").html("<img src='images/wwf_text_OFF.png' />");

			

			$("#box1 #mark_cc #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_cc  #content #text").html("<img src='images/cc_text_OFF.png' />");

			

			$("#box1 #mark_gm #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_gm  #content #text").html("<img src='images/gm_text_OFF.png' />");

			

			$("#box1 #mark_heineken_vuelo #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_heineken_vuelo  #content #text").html("<img src='images/vuelo_text_OFF.png' />");

			

			$("#box1 #mark_reggae #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_reggae  #content #text").html("<img src='images/reggae_text_OFF.png' />");

			

			

			$("#box1 #mark_city_harvest #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_city_harvest  #content #text").html("<img src='images/alex_text_OFF.png' />");

			

			$("#box1 #mark_tecate #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_tecate  #content #text").html("<img src='images/tecate_text_OFF.png' />");

			

			$("#box1 #mark_heineken_gritos #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_heineken_gritos  #content #text").html("<img src='images/grito_text_OFF.png' />");

			

			$("#box1 #mark_mcdonalds #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_mcdonalds  #content #text").html("<img src='images/mcdnld_text_OFF.png' />");

			

			$("#box1 #mark_wendys #bg").removeClass("clickedtransparencyBG");

			$("#box1 #mark_wendys  #content #text").html("<img src='images/gangstr_text_OFF.png' />");

		}

		function markclicked(id) {

			markcloselinksbox1()

			$("#box1 #"+id+"  #bg").addClass("clickedtransparencyBG");

			$("#box1 #"+id+"  #content #text").html("<img src='images/"+id+"_on.png' />");

			

			if(id == "mark_wwf") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/wwf_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_cc") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/cc_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_gm") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/gm_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_heineken_vuelo") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/vuelo_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_reggae") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/reggae_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_city_harvest") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/alex_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_tecate") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/tecate_text_ON.png' />");

				$("#box2 #award1").html("<img src='images/fiap_award_bronze.png' />");

				$("#box2 #award2").html("<img src='images/hcaa_award_silver.png' />");

			}else if(id == "mark_heineken_gritos") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/grito_text_ON.png' />");

				$("#box2 #award1").html("<img src='images/radio_mercury_red.png' />");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_mcdonalds") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/mcdnld_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}else if(id == "mark_wendys") {

				$("#stage").html("");

				$("#box1 #"+id+"  #content #text").html("<img src='images/gangstr_text_ON.png' />");

				$("#box2 #award1").html("&nbsp;");

				$("#box2 #award2").html("&nbsp;");

			}

		}

//// END: SOUND /////////////////////////////////////////////////////

//===================================================================



//===================================================================

//// START: CONTACT /////////////////////////////////////////////////

function contact_sub_nav_off() {

	//$("#subLocation").attr("src", "images/Location_OFF.png");

	//$("#subDailiesSpecs").attr("src", "images/Dailies_OFF.png");

	

	$("#subLocation").html("<img src='images/location_off.png' />");

	$("#subDailies").html("<img src='images/dailies_off.png' />");

}

function contact(){

	//mainNavCurrentButton = "navContact";

	closeMainNavs();

	

	rollOverOffMainNav("navContact");

	contact_sub_nav_off();

	turnOnAllSubRollOvers();

	$("#navContact").html("<img src='images/contact_on.png' />").hide().fadeIn('slow');

	contact_sub_nav_off();

	var logoregular = $("#logoregular").html();

	$("#logo").html(logoregular).hide().fadeIn('slow');

	var generalinfo = $("#generalInfo").html();

	var contacthomeemails = $("#contactHomeEmails").html();

	$("#preview").fadeOut('slow');

	$("#stage").html("<img src='images/main_img_contact.jpg' />").hide().fadeIn('slow');

	$("#box1").width(327);

	$("#box1").html(generalinfo).hide().fadeIn('slow');

	$("#box2").html(contacthomeemails).hide().fadeIn('slow');

}

	function sub_location(){

		

		rollOverOffSubNav("subLocation");

		contact_sub_nav_off();

		$("#subLocation").html("<img src='images/location_on.png' />").hide().fadeIn('slow');

		

		var generalinfo = $("#generalInfo").html();

		

		//$("#subLocation").attr("src", "images/Location_ON.png");

		$("#stage").html("<img src='images/main_img_location.jpg' />").hide().fadeIn('slow');

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html("<img src='images/location_map.jpg' />").hide().fadeIn('slow');

	}

	function sub_dailiesSpecs(){

		

		rollOverOffSubNav("subDailies");

		contact_sub_nav_off();

		$("#subDailies").html("<img src='images/dailies_on.png' />").hide().fadeIn('slow');

		

		window.open("pdfs/BOND-DailiesSpec.pdf");

		var generalinfo = $("#generalInfo").html();

		//contact_sub_nav_off();

		//$("#subDailiesSpecs").attr("src", "images/Dailies_ON.png");

		/*

		$("#stage").html("<img src='images/main_img_dailiesSpecs.jpg' />").hide().fadeIn('slow');

		$("#box1").html(generalinfo).hide().fadeIn('slow');

		$("#box2").html("&nbsp;").hide().fadeIn('slow');

		*/

	}

//// END: CONTACT ///////////////////////////////////////////////////

//===================================================================


