      function popup2(url,name,windowWidth,windowHeight){

      myleft=(screen.width)?(screen.width-windowWidth)/2:100;

      mytop=(screen.height)?(screen.height-windowHeight)/2:100;

      properties = "width="+windowWidth+",height="+windowHeight+",scrollbars=yes, top="+mytop+",left="+myleft;

      window.open(url,name,properties)

      }


function propergateformfeild(idname,valuetext){
values = jQuery(idname).attr('value');
if(values != valuetext && values == undefined){
jQuery(idname).attr('value',valuetext);
jQuery(idname).click(function(){
jQuery(idname).attr('value','');});}}

function closes(){

jQuery('#lbOverlay').remove();
jQuery('#video').remove();

}

function openvideo(){
var left = (screen.width/2)-(600/2);
var top = (screen.height/2)-(700/2);

	jQuery('body').prepend('<div id="lbOverlay" style="width:100%; padding:25%; height:100%; position:absolute; top:0px; left:0px; background-color: #AFAFAF; z-index:1000; opacity:0.5; filter: alpha(opacity=50); "></div>');
	jQuery('body').prepend('<div id="video"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/vlXHKs5CUZk&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vlXHKs5CUZk&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object><a href="javascript:closes();"><img src="/images/closelabel.gif" alt="close" /></a></div>');
	jQuery('#video').css('top',top);
	jQuery('#video').css('left',left);

}

jQuery(document).ready(function(){
propergateformfeild('#search_basket input','search website:');

jQuery('#tv_commercial').click(function(){

var left = (screen.width/2)-(600/2);
var top = (screen.height/2)-(700/2);

	jQuery('body').prepend('<div id="lbOverlay" style="width:100%; padding:25%; height:100%; position:absolute; top:0px; left:0px; background-color: #AFAFAF; z-index:1000; opacity:0.5; filter: alpha(opacity=50); "></div>');
	jQuery('body').prepend('<div id="video"><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/vlXHKs5CUZk&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vlXHKs5CUZk&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object><a href="javascript:closes();"><img src="/images/closelabel.gif" alt="close" /></a></div>');
	jQuery('#video').css('top',top);
	jQuery('#video').css('left',left);
});
								



jQuery('#traditional_leather').hover(function(){

	jQuery(this).find('a.mlink').css('background-color','#00748F');

	},function(){

	jQuery(this).find('a.mlink').css('background-color','#0090B3');

});


jQuery('#contemp_leather').hover(function(){

	jQuery(this).find('a.mlink').css('background-color','#4C5F23');

	},function(){

	jQuery(this).find('a.mlink').css('background-color','#7B9C31');

});




jQuery('#product_one').hover(function(){


	jQuery(this).find('.red_block').css('background','#243D7F');
	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');

});

jQuery('#product_two').hover(function(){

	jQuery(this).find('.red_block').css('background','#243D7F');
	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');

});

jQuery('#product_three').hover(function(){

	jQuery(this).find('.red_block').css('background','#243D7F');

	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');
});


jQuery('#product_four').hover(function(){


	jQuery(this).find('.red_block').css('background','#243D7F');

	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');
});

jQuery('#product_five').hover(function(){

	jQuery(this).find('.red_block').css('background','#243D7F');

	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');
});


jQuery('#product_six').hover(function(){

	jQuery(this).find('.red_block').css('background','#243D7F');

	},function(){

	jQuery(this).find('.red_block').css('background','#0C2A5F');
});

jQuery('.slide_content').parent().click(function(){


link = jQuery(this).find('a').attr('href');


window.location = link;

});
	jQuery('.slide_content').css('opacity','0.9');						
});
