function targetBlank() {
	window.open(this.href);
        return false;
};

function infoShow() {
	$('#inforArea').css("display", "block");
	$('#mainImage').css("display", "none");
};

function mediaShow() {	
	var currentPic = $(this).attr("id");
	//console.log($('#preview'));
	//$('#preview').attr("src", "images/" + currentPic +"_thumb.jpg");
	$('#preview').replaceWith('<img id="preview" src="images/' + currentPic +'_cover.jpg" />');
};

    
function maxWindow() {    
    //change these value for both IE and Mozilla based browsers 
    var theWidth = 830;
    var theHeight = 950;
        
    if (window.resizeTo) self.resizeTo(theWidth,theHeight);
}

$.fn.preload = function() {
    this.each(function(){
        $('<img/>')[0].src = this;
    });
}


$(document).ready(function() {  
		$(['KF_btn_dropdown_about.gif','KF_btn_dropdown_furniture.gif','KF_btn_dropdown_more.gif', 'KF_btn_dropdown_screens.gif', 'KF_btn_dropdown_sculpture.gif']).preload();
		maxWindow();
		$('.pdf').bind('click', targetBlank);
		$('.blank').bind('click', targetBlank);
		$('.infoBtn').bind('click', infoShow);
		$('.customBtn').bind('click', infoShow);
	}
);
