$('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		delay:  5000 
	});

function clearText(field)
{
if (field.defaultValue == field.value) field.value = '';
}
function restoreText(field) {
	if (field.value == '') field.value = field.defaultValue;
}

function checkScrollBar() {
    var hContent = $("body").height(); // get the height of your content
    var hWindow = $(window).height(); // get the height of the visitor's browser window
 
    if(hContent>hWindow) { // if the height of your content is bigger than the height of the browser window, we have a scroll bar
        return true;    
    }
 
    return false;
 
}

function popwin(title,width,height,img,bgcol){
	var iLeft = ( screen.width  - width ) / 2 ;
	var iTop  = ( screen.height - height ) / 2 ;

	var sOptions = "toolbar=no,status=no,resizable=no,dependent=yes" ;
	sOptions += ",width=" + width ;
	sOptions += ",height=" + height ;
	sOptions += ",left=" + iLeft ;
	sOptions += ",top=" + iTop ;
	
	var oWindow=window.open('','_popwin',sOptions) ;
	if (oWindow) {
		oWindow.document.open();
		oWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
		'<html xmlns="http://www.w3.org/1999/xhtml">'+
		'<head>'+
		'<title>'+title+'</title>'+
		'<style type="text/css">'+
		'	body{'+
		'		margin: 0px;'+
		'		padding: 0px;'+
		'		background-color: '+bgcol+';'+
		'	}'+
		'</style>'+
		'</head>'+
		'<body onclick="window.close();">'+
		'<img src="'+img+'"/>'+
		'</body>'+
		'</html>');
		oWindow.document.close();
		oWindow.focus();
	}
}


