/* *****************************************
//  WebTank javascript File
//  Title: palette.js
//  File updated: 2010-06-18 16:16:42
// 
//  Do NOT manually edit this generated file
// **************************************** */


var $j = jQuery.noConflict();

var id = 0;

$j(document).ready( function() {

	var current_menu_id = parseInt($j.url.param("m")) ? parseInt($j.url.param("m"))  : 0 ;
	
	var bg_image_id = $j("body").css("background-image").match(/id\=(\d+)\.(?:jpg|png)/);
	
	if ( bg_image_id && bg_image_id[1] ) {
	
		if( bg_image_id[1] == 319 ) {
			
//			alert("pink");
			
			$j("#menu_top > img").attr("src", "./images/editorial/id=324.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=323.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=364.png");
			
			//
			
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=321.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");
			
			//
			
			id = 1226;			
			
		} else if( bg_image_id[1] == 357 ) {
			
//			alert("blue");
	
			$j("#menu_top > img").attr("src", "./images/editorial/id=347.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=342.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=365.png");
			
			//
			
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=332.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");

			//
			
			id = 352;
			
		} else if( bg_image_id[1] == 358 ) {
			
//			alert("purple");
	
			$j("#menu_top > img").attr("src", "./images/editorial/id=348.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=343.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=366.png");
			
			//
			
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=333.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");
	
			//
			
			id = 353;
			
		} else if( bg_image_id[1] == 359 ) {
			
//			alert("yellow");

			$j("#menu_top > img").attr("src", "./images/editorial/id=350.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=344.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=367.png");
			
			//
			
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=334.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");
	
			//
			
			id = 354;
			
		} else if( bg_image_id[1] == 360 ) {
			
//			alert("orange");
	
			$j("#menu_top > img").attr("src", "./images/editorial/id=350.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=345.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=368.png");
			
			//
						
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=335.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");
	
			//
	
			id = 355;
			
		} else if( bg_image_id[1] == 361 ) {
			
//			alert("green");
			
			//
			
			$j("#menu_top > img").attr("src", "./images/editorial/id=351.png");
			$j("#menu_bottom > img").attr("src", "./images/editorial/id=346.png");
			
			$j("#graphic > img").attr("src", "./images/editorial/id=369.png");
			
			//
			
			$j("#ul-1-0 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-0 > li").css("background-image", "url('./images/editorial/id=336.png')");
			$j("#ul-1-0 > li").css("background-position", "3px 0px");
			$j("#ul-1-0 > li").css("background-repeat", "no-repeat");
			
			//
			
			id = 356;

		}
		
		/* NL */
	
		if( $j("#ul-1-2 > li").length > 0 && $j("#ul-1-6 > li").length > 0 && $j("#ul-1-35 > li").length > 0 ) {
	
			$j("#ul-1-2 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-2 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-2 > li").css("background-position", "3px 0px");
			$j("#ul-1-2 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-2 > li").css("border-bottom", "1px solid #FFFFFF");
			
			//
			
			$j("#ul-1-6 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-6 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-6 > li").css("background-position", "3px 0px");
			$j("#ul-1-6 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-6 > li").css("border-bottom", "1px solid #FFFFFF");
			
			//
			
			$j("#ul-1-35 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-35 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-35 > li").css("background-position", "3px 0px");
			$j("#ul-1-35 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-35 > li").css("border-bottom", "1px solid #FFFFFF");
			
		}
		
		/* EN */
		
		if( $j("#ul-1-18 > li").length > 0 && $j("#ul-1-23 > li").length > 0 && $j("#ul-1-32 > li").length > 0 ) {
	
			$j("#ul-1-18 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-18 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-18 > li").css("background-position", "3px 0px");
			$j("#ul-1-18 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-18 > li").css("border-bottom", "1px solid #FFFFFF");
			
			//
			
			$j("#ul-1-23 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-23 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-23 > li").css("background-position", "3px 0px");
			$j("#ul-1-23 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-23 > li").css("border-bottom", "1px solid #FFFFFF");
			
			//
			
			$j("#ul-1-32 > li").css("background-color", "#FFFFFF");
			$j("#ul-1-32 > li").css("background-image", "url('./images/editorial/id=" + id + ".png')");
			$j("#ul-1-32 > li").css("background-position", "3px 0px");
			$j("#ul-1-32 > li").css("background-repeat", "no-repeat");
			$j("#ul-1-32 > li").css("border-bottom", "1px solid #FFFFFF");
			
		}
		
	}
	
});