﻿var getMall=function(){
	SBShop1(tRewards,cRewards);
}

var iBookx=function(para){
	//var para=param;
	iNull();
	document.getElementById('mainContentx').style.display='none';
	document.getElementById('mainContentx').style.display='none';
	//var otiBookx=window.setTimeout("callTransparentx('iBook/iBookFHTM',para,'swfContent',900,700);",3000);
	callTransparentx('iBook/iBookFHTM',para,'swfContent',900,700);
}

var iChatx=function(){
	iNull();
	document.getElementById('mainContentx').style.display='none';
	var otiChatxx=window.setTimeout("callTransparentx('iChat/chatDemo','','swfContentChat',690,383);",3000);
	var otiChatx=window.setTimeout("callTransparentx('LoDghs','','swfContent',684,477);",3000);
}

var iVideox=function(para){
	//var para=param;
	iNull();
	document.getElementById('mainContentx').style.display='none';
	document.getElementById('swfContentChat').style.display='none';
	//var otiVideox=window.setTimeout("callTransparentx('fhtmVoD',para,'swfContent',684,477);",3000);
	callTransparentx('fhtmVoD',para,'swfContent',684,477);
}

var iNull=function(){
	document.getElementById('swfContent').style.display='none';
	document.getElementById('swfContentChat').style.display='none';
	callNonTransparentx('null','','swfContent',0,0);
	var otiNull=window.setTimeout("callNonTransparentx('null','','swfContentChat',0,0);",2000);
}

var iIntro=function(){
	document.getElementById('swfContentChat').style.display='none';
	callTransparentx('intro','','swfContent',715,480);
}

var iIntro1=function(){
	document.getElementById('swfContentChat').style.display='none';
	callTransparentx('intro1','','swfContent',640,360);
}

var iIntro2=function(){
	document.getElementById('swfContentChat').style.display='none';
	callTransparentx('intro2','','swfContent',720, 284);
}

var iHome=function(){
	document.getElementById('mainContentx').style.display='none';
	document.getElementById('swfContentChat').style.display='none';
	loadPage("home.htm","mainContentx");
	var otiHome=window.setTimeout('iIntro2();',1);
}

var iHeadquarter=function(){
	document.getElementById('swfContent').style.display='none';
	document.getElementById('swfContentChat').style.display='none';
	loadPage('office-location.htm','mainContentx');
}

var flashvars = {};
var params = {};
var attributes = {};
params.menu = "false";
//params.scale = "showall";
params.bgcolor = "#000000";
//params.allowFullScreen = "true";

/*
Shadowbox.loadSkin('classic', 'http://www.iwebhd.net/shadowbox/skin'); 
Shadowbox.loadLanguage('en', 'http://www.iwebhd.net/shadowbox/lang'); 
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], 'shadowbox/player'); 		

var openShadowbox=function(content, player, title){
	Shadowbox.open({
		content:content,
		player:player,
		title:title
	});
}
window.onload = Shadowbox.init;
*/

var getID=function(MyID){
	return (document.getElementById) ? document.getElementById(MyID) : document.all[MyID];
}
	
var loadedobjects="";

var loadobjs=function(){
	if (!getID){
		alert("Your Browser does not support DOM!");
		return false;
	}
	for (i=0;i<arguments.length;i++){
		var file=arguments[i];
		var fileref="";
		if (loadedobjects.indexOf(file)==-1){
			if (file.indexOf(".js")!=-1){
				fileref=document.createElement('script');
				fileref.setAttribute("type","text/javascript");
				fileref.setAttribute("src", file);
			}
			else if (file.indexOf(".css")!=-1){
				fileref=document.createElement("link");
				fileref.setAttribute("rel", "stylesheet");
				fileref.setAttribute("type", "text/css");
				fileref.setAttribute("href", file);
			}
		}
		if (fileref!=""){
			document.getElementsByTagName("head").item(0).appendChild(fileref);
			loadedobjects+=file+" ";
		}
	}
}


loadobjs('http:/'+'/www.dental'+'edu.tv/t/sb/shad'+'owbox.css','http:/'+'/www.dental'+'edu.tv/t/sb/shad'+'owbox.js');
	
function SBiPlexOS(){
	var SBiPlexOSx= {
		player:     'iframe',
		content:    'http://www.dentaledu.tv/course_catalogue.php?iDacotaID='+iDacotaID,
		initialWidth:			990,
		title:      'Professional HD Dental Online CE Training Center presented by iDacota'
	};
	Shadowbox.init({
			displayNav:         true,
			handleUnsupported:  "remove",
			autoplayMovies:     false,
			handleOversize: 		"none",
			modal: 							true,
			overlayOpacity: 		1,
			viewportPadding: 		1,
			continuous: 				true
	});
	Shadowbox.open([SBiPlexOSx], {});
};
	
	
var getLinkFromFlash=function(arg){
	eval(arg);
}

function initFlash(){
	swfobject.embedSWF("http://www.iwebhd.net/fhtm/null.swf", "swf0", "0", "0", "9.0.0", "expressInstall.swf");
}

var handleErr=function(msg,url,l){
	txt="There was an error on this iPlex web page.\n\n";
	txt+="Error: " + msg + "\n";
	txt+="URL: " + url + "\n";
	txt+="Line: " + l + "\n\n";
	txt+="Click OK to continue.\n\n";
	//if(!isIE) alert(txt);
	return true;
}

window.onerror=handleErr;

/*
var getID=function(MyID){
	return(document.getElementById)?document.getElementById(MyID):document.all[MyID];
}
*/

var getIfr=function(id,src,target,h,w,display){
	//alert('getIfr');
	getID(target).innerHTML='<iframe style="display:'+display+'; width:'+w+'px; z-index: 111; height: '+h+'px;" id="'+id+'" name="'+id+'" frameborder="0" height="'+h+'" width="'+w+'" src="'+src+'" marginheight="0px" marginwidth="0px" scrolling="auto"></iframe>';
}

var getFlashMovie=function(movieName){
	return (isIE) ? window[movieName] : document[movieName];
}

function ajaxpage(url, containerid){
	var page_request=false;
	if (window.XMLHttpRequest) // if Mozilla, Safari etc
	page_request=new XMLHttpRequest();
	else if (window.ActiveXObject){ // if IE
		try {page_request=new ActiveXObject("Msxml2.XMLHTTP")}
		catch (e){
			try {page_request=new ActiveXObject("Microsoft.XMLHTTP")}
			catch (e){}
		}
	}
	else return false;
	page_request.onreadystatechange=function(){loadpages(page_request,containerid)}
	page_request.open('GET',url,true)
	page_request.send(null)
}

function loadpages(page_request,containerid){
	if (page_request.readyState==4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
		//alert(page_request.responseText);
		//alert("containerid="+containerid);
		document.getElementById(containerid).innerHTML=page_request.responseText;
	}
}


var disableRightClick=function(evt){
	var e=evt;
	var message = "";
	if(!document.rightClickDisabled){
		if(document.layers){
			document.captureEvents(Event.MOUSEDOWN);
			document.onmousedown = disableRightClick;
		}
		else{
			document.oncontextmenu = disableRightClick;
		}
		return document.rightClickDisabled = true;
	}
	if(document.layers || (getID && !document.all)){
		if (e.which==2||e.which==3){

			return false;
		}
	}
	else{
		return false;
	}
}

disableRightClick();


function checkFormValidation(the){
	the.FromField.required=true;
	the.FromField.email=true; 
	if(the.CcField.value.length>0) the.CcField.email=true; else the.CcField.email=false;
	the.SubjectField.required=true; 
	the.BodyField.required=true;
	//alert("checkFormValidation");
	if(formValidator(the)){
		return true;
	}
	else return false;
}

var scbusaEmail=function(){
	iNull();
	document.getElementById('mainContentx').style.display='block';
	//alert('scbusaEmail');
	getIfr('if1','http://www.youtubehd.biz/scbusa-asp/mailForm.htm','mainContentx',460,750,'block');
}


var t1Dish='FHTM - Dish Networks Price Information';
var c1Dish='http://www.fhtm.net/dish/index.html';
var t2Dish='FHTM - Dish Networks Order Form';
var c2Dish='https://order.fhtmdishtv.com/index.php?rep_id=2686330';

var tGolf='FHTM - World Tour Golf Presidential Club';
var cGolf='https://www.fortunerep.com/IWTGolf/Default.aspx?rid=2686330';

var tMagazine='FHTM - Discount Magazine Shop';
var cMagazine='http://click.linksynergy.com/fs-bin/stat?id=TwiI6a2ZRy0&amp;offerid=40807.7&amp;type=3&amp;subid=0&amp;u1=2686330';

/*
var tEZ='FHTM - EZ Net Tools (Website)';
var cEZ='http://abc.eznettools.net/fortune/index.html?REPID=2686330';
*/

var tCell='FHTM - Wireless Cell Phone Shop';
var cCell='http://www.cellstores.com/mobile/?referringdomain=fortune&Eid=2686330';

var cTrotHop='http://r2686330.trothop.com/';
var tTrotHop='FHTM - TrotHop (Travelocity) Travel Portal';

var tAbout='FHTM - About Us';
var cAbout='http://www.fhtmus.com/ghs';

var tMore='More FHTM Product Online Shops and Information';
var cMore='http://www.fhtmus.com/ghs';

var tRep='FHTM - Become an Independent Representative and your own Manager';
var cRep='https://www.fortunerep.com/new_rep.asp?1=2686330';

var tRewards='FHTM - Rewards Shopping Mall';
var cRewards='http://bsprewards.com/fortune/index.cfm?memid=2686330';



var tVoIP='FHTM - Voice Connect (VoIP for Phone and Video)';
var cVoIP='https://fhtm.voiceconnectinc.com:10446/usa.php?repid=2686330';

var tDigital='FHTM - Digital Landing';
var cDigital='http://direct.digitallanding.com/?PromoID=5006070&option1=2686330';

var tCallIntl='FHTM - Total Call International';
var cCallIntl='https://www.tcitel.com/new/?aid=5117&pid=r311&act=r&prod=op&repid=2686330';



var tGE='FHTM - GE Wireless Home Security System';
var cGE='http://www.greatalarms.com/partners/index.cfm?aid=2681&sub_id=2686330';

var tFrontPoint='FHTM - FrontPoint Wireless Home Security System';
var cFrontPoint='http://www.homesavingsshop.com/frontpoint/frontpoint_home.cfm?sid=400027&subid=2686330';

var tDuPont='FHTM - DuPont(TM) Air & Water Filters';
var cDuPont='http://www.waterandairforlife.com/index.php?refid=2686330';



var tEssentials='FHTM - True Essentials Shop';
var cEssentials='http://www.trueessentials.net/index.asp?repid=2686330';

var tFittness='FHTM - Cyper Fittness Videos Online Shop';
var cFittness='http://www.fabsfhtm.com/?repid=2686330';

var tBasset='FHTM - Flying Basset Shop';
var cBasset='http://www.trueessentials.net/theflyingbasset/index.asp?repid=2686330';

var tVC='LIVE VIDEO CONFERENCE ROOM';
var cVC='http://www.gvowebcast.com/conference,emoney-conference-room-,private';

var tVCSF='GET YOUR OWN LIVE VIDEO CONFERENCE SYSTEM';
//var cVCSF='http://www.gvoconference.com/clickthru.php?id=374339&type=REDIRECT&d=2';	//Ferrari
var cVCSF='http://drghs.gvoconference.com/affiliates/offer/pre_launch.php?sk=42ab51efcf36039b8404be8be38d710b';	//Girl

var tVCS='GET YOUR OWN LIVE VIDEO CONFERENCE SYSTEM';
var cVCS='http://drghs.myprelaunchinvite.com/2/en/';	//Multilingual

var tVCSA='GET ALL YOUR OWN MARKETING TOOLS';
var cVCSA='http://drghs.gogvo.com/index2.php';



function SBShop1(titl,cont){
	iNull();
	//iHome();
	var SBarr= {
		player:     'iframe',
		content:    cont,
		width:      1100,
		title:      titl
	};
	Shadowbox.init({
			displayNav:         true,
			handleUnsupported:  "remove",
			autoplayMovies:     false,
			handleOversize: 		"none",
			modal: 							true,
			overlayOpacity: 		1,
			viewportPadding: 		1,
			continuous: 				true
	});
	Shadowbox.open([SBarr], {
		continuous: true
	});

};

function SBShop2(titl1,cont1,titl2,cont2){
	iNull();
	//iHome();
	var SBarr1= {
		player:     'iframe',
		content:    cont1,
		width:      990,
		title:      titl1
	};
	var SBarr2= {
		player:     'iframe',
		content:    cont2,
		width:      990,
		title:      titl2
	};
	Shadowbox.init({
			displayNav:         true,
			handleUnsupported:  "remove",
			autoplayMovies:     false,
			handleOversize: 		"none",
			modal: 							true,
			overlayOpacity: 		1,
			viewportPadding: 		1,
			continuous: 				true
	});
	Shadowbox.open([SBarr1,SBarr2], {
		continuous: true
	});

};


