function hide_me()
{
	$('#menu_child0').hide();
}

$(document).ready(function()
{

	//Rollover Resimler icin degitirici
	$(".roll").hover(
	 function()
	 {
	  this.src = this.src.replace("_off","_on");
	 },
	 function()
	 {
	  this.src = this.src.replace("_on","_off");
	 }
	);
	//End
	
	
	//Custom selectbox icin 
	$("#brands").custom_selectbox().bind('change', 
	function()
	{
		document.location.href=$('#brands').val();
	});
	
	$("#downloads").custom_selectbox().bind('change', 
	function()
	{
		document.location.href=$('#downloads').val();
	});
	//End
	
	//Strip tablosu icin renklendirme
	$(".strip tr:even").addClass("eventr");
	$(".strip tr:odd").addClass("oddtr");
	$(".strip tr").mouseover(function() 
	{
		$(this).addClass("trover");
	}).mouseout(function() 
	{
		$(this).removeClass("trover");
	}).click(function() {
		$(this).toggleClass("trclick");
	});
	/*End */
	
	
	//Iphone Controls
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/iPod/i)))
	{
		$("div.flash_banner").hide();
		$("div.flash_replace").show();	
		$(function(){
			$('#portfolio').innerfade({
				speed: 'slow',
				timeout: 4000,
				type: 'sequence',
				containerheight: '287px'
			});
		});
		
	} 
	
	else
	{
	}
	

	//Accordion
	$(".click_to_open").click(function() {

        var target_div = $("#" + $(this).attr("val"));
        var target_a = $("a[val= '" + $(this).attr("val") + "']");
        $("a.click_to_open").css('font-weight', 'normal');
        
        if (target_div.is(":hidden")) {
            $(".click_to_open_div").slideUp("fast");
            target_div.slideDown("fast");
            target_a.css('font-weight','bold');
        } else 
        {
            target_div.slideUp("fast");
            
        }

    });


});


	$(function()
		{
			$('.scroll-pane').jScrollPane({animateTo:true});
			
		});


