// JavaScript Document
var w_height = $(window).height();
var w_width = $(window).width();

$(document).ready(function() {
	$('.slideshow').each(function(){
		$(this).cycle({next:$(this),timeout: 0,speed: 0});
		$( ".draggable" ).draggable({ stack: ".draggable" });
		var stack = $( ".draggable" ).draggable( "option", "stack" );
	});
});
//##################################################################

function closeme(item){
	$(item).hide();
	$(item).attr("src", "assets/images/loader.gif");
}

function pres_show(id){
	$("#pro"+id).toggle("fast");
	$('#im'+id).hide()
}

function togleme(id, thepath){
	$('#im'+id).show()
	$('#im'+id).attr("src", thepath);
	//alert(thepath);
}

function togleall(type){
	$('.preview').hide()
	if(type==0){
	$('.dspcont').hide();
	}else{
	$('.dspcont').show();
	}
}

