$(function(){
			/* Active Link */
		var currentURL = window.location.toString().split("/");

		var currentpage = currentURL[currentURL.length-1];
		$("#smoothmenu1 a").each(function() {
		var hreflink = $(this).attr("href");		
			if (hreflink.toLowerCase()==currentpage.toLowerCase()) {	
				$(this).addClass("current");
				if($(this).parents('li')){
					$(this).parents('li').find('a:first').addClass("current")
				}
				
			}
		});
		if($("#left_nav_box")){
			$("#left_nav_box a").each(function() {
					var hreflink = $(this).attr("href");		
					if (hreflink.toLowerCase()==currentpage.toLowerCase()) {	
				       $(this).addClass("active");				
					}						  
			});
		}
		checkpage();
});



$(function(){
$(window).resize(resize_stripe);
resize_stripe();
});
function resize_stripe(){
var width=$(document).width();
if(width > 1210){
$("#main").width(1210);
} else {
$("#main").removeAttr("style")
}
}
function checkpage(){	
var param=window.location.search.match(/pid=[\w\-_,]+/i) //search for scrollto=divid
if(!param) return;
var idname =param[0].split('=')[1];
	if(idname == '46' || idname == '47'){
		if (idname == '47'){
			$("body").attr("id","choclate")
		} else{
			$("body").attr("id","coolfest")
			
		}
	}
}
