ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

$(document).ready( function() {
	$('#news').innerfade({
		animationtype: 'slide',
		speed: 750,
		timeout: 2000,
		type: 'random',
		containerheight: '1em'
	});

	$('ul#portfolio').innerfade({
		speed: 1000,
		timeout: 7000,
		type: 'sequence',
		containerheight: '253px'
	});

	$('.fade').innerfade({
		speed: 1000,
		timeout: 6000,
		type: 'random_start',
		containerheight: '1.5em'
	});

	$('.adi').innerfade({
		speed: 'slow',
		timeout: 5000,
		type: 'random',
		containerheight: '150px'
	});
});

function set_cm_action( value, type ) {
  var httpObj = jQuery.get( "/phpscript/get_action.php?value=" + value + "&type=" + type + "&catch=" + ( new Date() ).getTime(),
  null,
  function() {
  } );
}

function loadFlashPlayer() {
	var mWidth = 210;
	var mHeight = 200;
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + mWidth + '" height="' + mHeight + '" id="MP3-Player" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="flash_movie/mp3_player.swf?1" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#000000" />');
	document.write('<embed src="flash_movie/mp3_player.swf?1" quality="high" bgcolor="#000000" width="' + mWidth + '" height="' + mHeight + '" name="MP3-Player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function loadFlashPlayer2(mp3, title) {
	var mWidth = 200;
	var mHeight = 180;
	var rnd = new Date().getTime();
	var file = "http://www.kazoohall.com/pc/flash_movie/player_mp3_multi.swf";

	document.write('<object type="application/x-shockwave-flash" data="' + file + '" width="' + mWidth + '" height="' + mHeight + '">');
//	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + mWidth + '" height="' + mHeight + '" id="MP3-Player" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + file + '?' + rnd + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#000000" />');
	document.write('<param name="FlashVars" value="' + mp3 + '&amp;' + title + '&amp;bgcolor1=373737&amp;bgcolor2=333333&amp;playlistalpha=70&amp;height='+mHeight+'" />');
	document.write('</object>');
}

function initRollOverImages() {
	var image_cache = new Object();
	$("img.roll").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_on;
		$(this).hover(
		function() { this.src = imgsrc_on; },
		function() { this.src = imgsrc; });
	});
}

$(document).ready(initRollOverImages);
$(document).ready( function () {
 $("a[href^=http]").not("[href*="+location.hostname+"]").attr("target","_blank");
});


