// JavaScript Document

share.url = 'http://WhoIsSalt.com';//update this if your url is not dynamic. If this is done in flash, it will overwrite this setting

share.title = 'Angelina Jolie stars in Salt - In Theaters July 23rd!';

share.tweet = 'Angelina Jolie stars in Salt - In Theaters July 23rd! http://WhoIsSalt.com';//This is only for twitter

share.description = 'Check out the Salt official movie site and trailer!';//This will not work for facebook

if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1)){
            window.location = 'iphone/';
}else if(navigator.userAgent.indexOf('iPad') != -1) {
            window.location = 'ipad/';
}


addLoadEvent(function(){
	if(top.location != location){
		var a = document.getElementsByTagName('a');
		if(extendOnClick){
			for(var i=0; i<a.length; i++){
				extendOnClick(a[i],function(){
					var href = this.getAttribute('href');
					if(href){
						top.location = href;
					}
				});
			}
		}
	}
});

