//--------------------Native Functions---------------------
function $d(id) {
	return document.getElementById(id);
}
//-------------------Browsers Functions--------------------
function Browser() {
	if (navigator.userAgent.indexOf("Opera") !=-1)
	this.opera = true;
	if (navigator.userAgent.indexOf("Konqueror") !=-1)
	this.konqueror = true;
	if (navigator.userAgent.indexOf("Safari") !=-1)
	this.safari = true;
	if (navigator.userAgent.indexOf("Firefox/1.0") !=-1)
	this.ff10 = true;
	if (navigator.userAgent.indexOf("Firefox/1.5") !=-1)
	this.ff15 = true;
	if (navigator.userAgent.indexOf("Netscape/7.0") !=-1)
	this.netscape = true;
	if (navigator.userAgent.indexOf("MSIE 7") !=-1)
	this.ie7 = true;
	if (navigator.userAgent.indexOf("MSIE 6") !=-1)
	this.ie6 = true;
	if (this.ie6 || this.ie7)
	ieBrowser.call(this);
		else
	ffBrowser.call(this);
}
function ieBrowser() {
	BrowserFamily = "IE";
	//AjaxRequest = function() { return new ActiveXObject("Microsoft.XMLHTTP"); }	
	this.setOpacity = function(el, value) {
	var oppc = parseInt(value*100);
	el.style.filter = "alpha(opacity="+oppc+")";
	}
}
function ffBrowser() {
	BrowserFamily = "NO-IE";
	//AjaxRequest = function() { return new XMLHttpRequest; }	
	this.setOpacity = function(el, value) {
	el.style.opacity = value;
	}
}
var browser = new Browser();
browser.getHttpObject = function() {
if(this.ie6 || this.ie7)
	return new ActiveXObject("Microsoft.XMLHTTP");
else
	return new XMLHttpRequest;
}
//-------------------Init Functions--------------------
$(function() {
    $('#toss1').cycle({
       fx:     'toss',
       easing: 'easeOutExpo',
       speed:    2400,
       timeout:	 4500,
       animOut: { top: 25, left: -300 }
    });
});
//-------------------App&Nav Functions--------------------