$x = jQuery.noConflict();
$x(function(){
	$x('ul.topNavlink').superfish();	
});

//This is to download the catelogs 
function download_catelog(){	
    var url='../media/wsilcatalogue2009.pdf';    
    window.open(url,"Download","status=1,width=800,height=800");
}

//Change the additional images it will set as main image
function changeimage(image){
	var src_source = $x(image).attr("src");	
	var src_destin = $x(".product-img-box .product-image img.bigimage").attr("src");
	
	var zoom_image_source = $x(image).attr("zoom");		
	var zoom_img_source = $x(".product-img-box .product-image img.bigimage").attr("zoom");		
	
	var src_source_value = $x(image).attr("value");	
	var src_destin_value = $x(".product-img-box .product-image img.bigimage").attr("value");
    	
	$x(".product-img-box .product-image img.bigimage").attr("src", src_source_value);
	$x(image).attr("src", src_destin_value);
	
	$x(".product-img-box .product-image img.bigimage").attr("value", src_source);
	$x(image).attr("value", src_destin);
	
	$x(".product-img-box .product-image img.bigimage").attr("zoom", zoom_image_source);
	$x(image).attr("zoom", zoom_img_source);
	$x(".zoomImage").attr("zoom", zoom_image_source);
	
}

//zoom image option
function openwin(source){
	var openwin_src_source = $x(source).attr("zoom");	
	window.open(openwin_src_source, "popup", "width=620px, height=590px, left=30px, top=30px, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no");
}
