$(document).ready( function() {
	Shadowbox.init({
		displayNav: false,
		enableKeys: false,
		modal: true,
		handleOversize: "resize",
		troubleElements: ["select", "object", "embed"]
	});
	
	
	
	
	$(".column img:not(.interactionBlock)").addClass("onlyImg");
	
	var rounded = Math.floor(Math.random()*3);
	if(rounded == 0){
		$("#teaser img").attr({"src" : "/~siteDesign/site/~img/AccountViewSoftwareteaser0.jpg", "alt" : "Account Software Groep"});
	} else if(rounded == 1){
		$("#teaser img").attr({"src" : "/~siteDesign/site/~img/AccountViewSoftwareteaser1.jpg", "alt" : "Account Software Groep"});
	} else if(rounded == 2){
		$("#teaser img").attr({"src" : "/~siteDesign/site/~img/AccountViewSoftwareteaser2.jpg", "alt" : "Account Software Groep"});
	}
	
	Cufon.replace("h1, h2, h3, #teaser p, #menu ul li a, .form a, .form h3, .form #submit", { fontFamily: "Frutiger 57 Condensed", hover: true });

	if($.browser.msie == true){
		$update = false;
		$('.interactionBlock a, .interactionBlockImage a').hover(function(){
			Cufon.replace(".interactionBlock a h3, .interactionBlockImage a h3", { fontFamily: "Frutiger 57 Condensed", hover: true });
			$update=true;
		});
		
		$("body").mousemove(function(e){
			if($update==true){
				Cufon.replace(".interactionBlock a h3, .interactionBlockImage a h3", { fontFamily: "Frutiger 57 Condensed", hover: true });
			}
		});
	} else {
		$('.interactionBlock a, .interactionBlockImage a').hover(function(){
			Cufon.replace(".interactionBlock a h3, .interactionBlockImage a h3", { fontFamily: "Frutiger 57 Condensed", hover: true });
		}, function(){
			Cufon.replace(".interactionBlock a h3, .interactionBlockImage a h3", { fontFamily: "Frutiger 57 Condensed", hover: true, color: "#039B66" });
		});
		
		$('.form a#submit').hover(function(){
			Cufon.replace(".form a#submit", { fontFamily: "Frutiger 57 Condensed", hover: true });
		}, function(){
			Cufon.replace(".form a#submit", { fontFamily: "Frutiger 57 Condensed", hover: true, color: "#039B66" });
		});
	}
	


});



