
$(document).ready(function(){	
	var size = $("ul.home-list-col li").size();
	$("ul.home-list-col li a").hover(function(){
	var curChildIndex = $(this).parent().prevAll().length + 1;
	if(!$(this).parents("ul").hasClass('leftm')) curChildIndex = curChildIndex + 6;
	$("#img-brands").html("<img src=\"/images/thumbs/" + curChildIndex + ".jpg\" width=\"130px\" height=\"97px\"/>");
	},function(){   		
	
	});
	});
	
	
sIFR.replaceElement("span", named({sFlashSrc: "/sifr.swf",sSelector:".frame span",sWmode:"transparent",sColor:"#cea681"}));
sIFR.replaceElement("h1", named({sFlashSrc: "/sifr.swf",sSelector:".buyuk",sWmode:"transparent",sColor:"#0b2536"}));
sIFR.replaceElement("span", named({sFlashSrc: "/sifr.swf",sSelector:".panel .tagdesc",sWmode:"transparent",sColor:"#ffffff", sFlashVars:"textalign=right", nPaddingRight : "5"}));
sIFR.replaceElement("span", named({sFlashSrc: "/sifr2.swf",sSelector:"span.head",sWmode:"transparent",sColor:"#0b2536", nPaddingRight : "27", sFlashVars:"offsetTop=5"}));
sIFR.replaceElement("span", named({sFlashSrc: "/sifr2.swf",sSelector:"span.menuh",sWmode:"transparent",sColor:"#0b2536", nPaddingRight : "0", sFlashVars:"offsetTop=5"}));
sIFR.replaceElement("span", named({sFlashSrc: "/sifr2.swf",sSelector:"#quote span",sWmode:"transparent",sColor:"#ffffff", nPaddingLeft : "12", sFlashVars:"offsetTop=3"}));


$(document).ready
(


	function()
	{

		$('#menu-top > li').find('h2 > a')
		.bind('mouseenter', function()
		{
			$(this).parents('li').find('> .submenu').css("display","block");
			$(this).parents(".menu-first").find("h2").addClass("active");
			/*
			textDefault = $(this).parents('li').find(".submenu-content").html();
			
			$(this).parents('.menu-first').mouseout ( function() 
			{ 
				$(this).find(".submenu-content").replaceWith("<div class=\"submenu-content\">" + textDefault + "</div>");
			});
			*/
		}).end()
		.bind('mouseleave', function()
		{
			$(this).parents("#menu-top li").find("h2").removeClass("active");
			$('.submenu', this).css("display","none");
		});
		
		
 
	}

);

stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:true, moveby:1, pause:4000},
	panelbehavior: {speed:600, wraparound:true, persist:true},
	defaultbuttons: {enable: false, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
})

if (document.images)
{
pic1= new Image(130,97); 
pic1.src="/images/thumbs/1.jpg";
pic2= new Image(130,97); 
pic2.src="/images/thumbs/2.jpg";
pic3= new Image(130,97); 
pic3.src="/images/thumbs/3.jpg";
pic4= new Image(130,97); 
pic4.src="/images/thumbs/4.jpg";
pic5= new Image(130,97); 
pic5.src="/images/thumbs/5.jpg";
pic6= new Image(130,97); 
pic6.src="/images/thumbs/6.jpg";
pic7= new Image(130,97); 
pic7.src="/images/thumbs/7.jpg";
pic8= new Image(130,97); 
pic8.src="/images/thumbs/8.jpg";
pic9= new Image(130,97); 
pic9.src="/images/thumbs/9.jpg";
pic10= new Image(130,97); 
pic10.src="/images/thumbs/10.jpg";
pic11= new Image(130,97); 
pic11.src="/images/thumbs/11.jpg";
pic12= new Image(130,97); 
pic12.src="/images/thumbs/12.jpg";
}

