function Set_Cookie( name, value, expires, path, domain, secure ) {
	var today = new Date();
	today.setTime( today.getTime() );

	if ( expires )
		expires = expires * 1000 * 60 * 60 * 24;

	var expires_date = new Date( today.getTime() + (expires) );

	document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
		( ( path ) ? ";path=" + path : "" ) + 
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
	}



var host = "parkatmyhouse.com";



$(document).ready(function(){
       
$("body a[href*='parkatmyhouse']").click(function(){
     var hostURL = $(this).attr("href").replace("http://", "");
     var temp = new Array();
     temp = hostURL.split('/');
     hostURL = temp[0];

    if (location.host!=hostURL && window.pageTracker){
        pageTracker._link($(this).attr("href"));
	 return false;
    }
        return true;
    });

$('#local_change').change(function(){
    $("#input_local").val($(this).val());
    return true;
});

$('#alt_search').val($('#textinput').val());

$('#alt_search').keyup(function(){        
    $('#textinput').val($(this).val());
    return true;
});

$('#textinput').keyup(function(){        
    $('#alt_search').val($(this).val());
    return true;
});

$('#temp_submit').click(function(){        
    document.search_form.submit();
    return true;
});


         var i = 0;
         imageObj = new Image();

     images = new Array();
     images[0]="http://static."+host+"/images/template/all_template.png"
     images[1]="http://static."+host+"/images/icons/maps/parking/all_items.png"
     images[2]="http://static."+host+"/images/feeds/all_feeds.png"
     images[3]="http://static."+host+"/images/icons/all_icons.png"

     for(i=0; i<=3; i++){
        imageObj.src = images[i];
     }
        return true;
        
        

        
});