//all non jQuery Scripts

//Placeholders fix for non HTML5 browsers (IE SUX!!!!)
function activatePlaceholders() {
	var detect = navigator.userAgent.toLowerCase(); 
	if (detect.indexOf("safari") > 0) return false;
	var inputs = document.getElementsByTagName("input");
	for (var i=0;i<inputs.length;i++) {
	  if (inputs[i].getAttribute("type") == "text") {
	   if (inputs[i].getAttribute("placeholder") && inputs[i].getAttribute("placeholder").length > 0) {
	    inputs[i].value = inputs[i].getAttribute("placeholder");
	    inputs[i].onclick = function() {
	     if (this.value == this.getAttribute("placeholder")) {
	      this.value = "";
	     }
	     return false;
	    }
	    inputs[i].onblur = function() {
	     if (this.value.length < 1) {
	      this.value = this.getAttribute("placeholder");
	     }
	    }
	   }
	  }
	}
}
window.onload=function() {
activatePlaceholders();
}


//Flash is terrible!!!
//Have I mentioned that FLASH SUCKS!!!!!???!!!!!
//If this gun wasn't being pointed at me right now to add this flash in this site I would not be adding it, but for the sake of my life I will add flash.
var flashvars = {};
flashvars.xml = "/wp-content/themes/impact/config.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("/wp-content/themes/impact/cu3er.swf", "cu3er-container", "960", "262", "9", "/wp-content/themes/impact/js/expressInstall.swf", flashvars, attributes);




//Begin jQuery Functions

jQuery(document).ready(function() {


	//Lazyloading the image
	jQuery("img").lazyload({
		threshold	: 200,
		placeholder : "../images/grey.gif",
		effect      : "fadeIn"
	});

});

//End jQuery Functions
