
/**
 * @autor mikettel
 * @see http://tablesorter.com/docs/
 */


$(document).ready( function() 
{								
	Shadowbox.init({
		flashVersion: "8",
		overlayColor: '#000000', 
	    overlayOpacity:0.6,
	    initialWidth: 350,
	    initialHeigh: 460,
	    //counterLimit: 1,	    
	    //counterType: 'skip',
	    //continuous: true,
	    //modal: true
	    displayCounter: false,
	    displayNav: false		    
	});	

	/* */
	$("#rightnavigation .hasChildren").hover(
		function() {
			$(this).addClass('hoverDown');		
		}, 
		function() {
			$(this).removeClass('hoverDown');
		}
	);
	
}); 


function closeShadowBox() {
	//alert("close");
	Shadowbox.close()
}



/**
 * opens a js-popup
 * can be used to open popups out of flashs
 * actionscript code example: "on (release){getURL("javascript:openpopup('yourfilename.html', 1000, 575)");}"
 */
function openpopup(urlpath, width, height) {
    window.open(urlpath, "contact", "width="+width+",height="+height+",toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=yes");
} 





/**
 * open the thickbox out of a swf file
 * getURL("javascript:openShadowbox('"+_root.linkzumpopup+"', 'swf', 'Popup')");
 */
function openShadowbox(content, player, title){
	
    Shadowbox.open({
        content:    content,
        player:     player,
        title:      title
    });
}
