// Open a popup window
function Open(theURL,winName,features) { //Popup function
   window.open(theURL,winName,features);
}

<!-- IROADMAP Engage Cloaking Device

function change_link(link_url)
{
ContentWindow=window.open(link_url,"childwin","toolbar=yes,location=no,resizable=yes,scrollbars=yes,width=800,height=474");
}
// Disengage Cloaking Device -->

function siteFloat() {
Open('/web/FR/includes/sitemap.shtml','','menubar=no,scrollbars=no,resizable=no,width=670,height=385');
}

function getArgs() {
	var args = new Object();
    var query = location.search.substring(1); //Get query string.
    var pairs = query.split("&"); //Break at ampersand.        

    for(var i = 0; i < pairs.length; i++) {
    	var pos = pairs[i].indexOf('='); //Looks for "name=value".
        if (pos == -1) continue;  //If not found, skip.
        var argname = pairs[i].substring(0,pos); //Extract the name.
        var value = pairs[i].substring(pos+1); //Extract the value.
        args[argname] = unescape(value); //Store as a property.
    }
    return args;  //Return the object.
}


// Helpdesk links
function contact(location) {
	if (location!='') {
		switch (location) {
			case "smb": {
			callerID = '3';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=720,height=500');
			break
			}
			case "ent": {
			callerID = '2';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=720,height=500');
			break
			}
			case "sp": {
			callerID = '4';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=720,height=500');
			break
			}
			case "tecsol": {
			callerID = '7';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=720,height=500');
			break
			}
			case "home": {
			callerID = '1';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=720,height=500');
			break
			}
			default: {
			callerID = '1';
			location = 'home';
			Open('/web/FR/solutions/helpdesk/home_desk.shtml?contactType='+location+'&cl='+callerID+'','','menubar=no,scrollbars=no,resizable=no,width=590,height=500');	
			break
			}
		}
	}else {
	//nothing
	}
}

	
//navigator || ie detector window caller
function callWindow(theURL,winName,features) {

   var app=navigator.appName;
   if (app.indexOf('Netscape') == -1) {
   window.open(theURL,winName,features);
   //window.close();
   }
   else {
   //window.open(theURL,winName,features);
   window.open(theURL,winName,features);
   }
  }

//SMB Cube Network Architecture Link
function nra(loc) {
errorMessage = "There has been an error finding the file you requested.\nPlease use the Cisco Help Desk on the right hand navigation panel to contact\na Cisco Representative for further information.";
	nraFile = "/web/FR/solutions/smb/";
	eta = 'coming soon';
	switch (loc) {	
				case "ec":
				//
				location.href = nraFile+'ecommerce/ec_networkdiag1_home.shtml';
					break
				case "cc"://public care
					location.href = nraFile+'ecommerce/cc_networkdiag1_home.shtml';
					break
				case "ci"://customer interaction
					location.href = nraFile+'customer_interaction_diag.html';
					break
				case "sfa"://sales force automation
					location.href = nraFile+'ebusiness/sfa/sfa_networkdiag1_home.shtml';
					break
				case "wc"://web communication
					location.href = nraFile+'email/wc_networkdiag1_home.shtml';
					break
				case "fm"://financial management
					location.href = nraFile+'ebusiness/fm/fm_networkdiag1_home.shtml';
					break
				case "md"://manufacturing and distribution
					location.href = nraFile+'ebusiness/md/md_networkdiag1_home.shtml';
					break				
				case "scm"://supply chain management
					location.href = nraFile+'ecosystem/scm/scm_networkdiag1_home.shtml';
					break
				case "ep"://e-procurement
					location.href = nraFile+'ecosystem/ep/ep_networkdiag1_home.shtml';
					break
				case "hrm"://human resource management
					location.href = nraFile+'ebusiness/hrm/hrm_networkdiag1_home.shtml';
					break
				case "wm"://web marketing
					location.href = nraFile+'webmarketing/wm_networkdiag1_home.shtml';
					break		
		default:
  				alert(errorMessage);			
			}
		}


//SMB Cube Overview links
function linkTo(area,args) {	
	smbFile = "/web/FR/solutions/smb/";	
 	errorMessage = "There has been an error finding the file you requested.\nPlease use the Cisco Help Desk on the right hand navigation panel to contact\na Cisco Representative for further information.";
	
	eta = errorMessage;
	switch (area) {				
		case "smb_web_marketing":			
			location.href = smbFile+'webmarketing/wm_whatis_home.shtml';
			break
		case "smb_web_communication":			
			location.href = smbFile+'email/wc_whatis_home.shtml';
			break
		case "smb_sales_force_automation":			
			location.href = smbFile+'ebusiness/sfa/sfa_whatis_home.shtml';
			break
		case "smb_hrm":			
			location.href = smbFile+'ebusiness/hrm/hrm_whatis_home.shtml';
			break
		case "smb_financial_management":			
			location.href = smbFile+'ebusiness/fm/fm_whatis_home.shtml';
			break
		case "smb_manufacturing_distribution":			
			location.href = smbFile+'ebusiness/md/md_whatis_home.shtml';
			break
		case "smb_customer_care":			
			location.href = smbFile+'ecommerce/cc/cc_whatis_home.shtml';
			break
		case "smb_ecommerce":			
			location.href = smbFile+'ecommerce/ec/ec_whatis_home.shtml';
			break
		case "smb_eprocurement":			
			location.href = smbFile+'ecosystem/ep/ep_whatis_home.shtml';
			break
		case "smb_supply_chain_management":			
			location.href = smbFile+'ecosystem/scm/scm_whatis_home.shtml';
			break				
		default:
			//
			alert(eta);
		}
	
}

//SMB Cube Case Study Links
function caseStudyPage(file) {
 errorMessage = "There has been an error finding the file you requested.\nPlease use the Cisco Help Desk on the right hand navigation panel to contact\na Cisco Representative for further information.";
	//
	casePage = "/web/FR/solutions/smb/";
	
		if (file!='') {
		//process case
			switch (file) {
				//ecommerce
				case "ec":
					location.href = casePage+'ecommerce/ec/ec_casestudy_home.shtml';	
				break				
				//customer care
				case "cc":
					location.href = casePage+'ecommerce/cc/cc_casestudy_home.shtml';	
						break
				//
				case "ep"://eprocurement
					location.href = casePage+'ecosystem/ep/ep_casestudy_home.shtml';
				break				
				//supply chain mgmt
				case "scm":
					if (confirm('There is no Case Study available that relates specifically to this subject.\nClick OK if you would like to see a list of all available Case Studies in Partner Efficiency\nor cancel to remain on this page.')) {
						location.href = casePage+'partner/partner_casestudy_home.shtml';	
						break
					} 
					else {
					break
					}				
				case "wm"://web marketing
					location.href = casePage+'webmarketing/wm_casestudy_home.shtml';
				break
				//
				case "web_communication"://web communication
					location.href = casePage+'email/wc_casestudy_home.shtml';
				break
				//
				case "sfa"://sales force automation
					location.href = casePage+'ebusiness/sfa/sfa_casestudy_home.shtml';
				break
				//
				case "md":
					location.href = casePage+'ebusiness/md/md_casestudy_home.shtml';	
						break
				//
				case "fm":
					location.href = casePage+'ebusiness/fm/fm_casestudy_home.shtml';	
				//
				case "hrm":
					location.href = casePage+'ebusiness/hrm/hrm_casestudy_home.shtml';	
				default:
					if (confirm('There is no Case Study available that relates specifically to this subject.\nClick OK if you would like to see a list of all available Case Studies in Partner Efficiency\nor cancel to remain on this page.')) {
						location.href = casePage+'smb_casestudy_home.shtml';
						break
					} else {
					//nothing
					}
			}
		} else {
			alert(errorMessage);
	}

}

//ESeminars from Flash
function eSeminarPage(file) {
	mediaFile = "/web/FR/solutions/smb/";
	//alert(file);
	if (file!='') {
		switch (file) {
			case "sfa": 
			location.href = mediaFile+'ebusiness/sfa/sfa_eseminar_home.shtml';
			break
			//
			case "ec": 
			location.href = mediaFile+'ecommerce/ec/ec_eseminar_home.shtml';
			break
			//
			case "partner_efficiency": 
			location.href = mediaFile+'ecosystem/ep/ep_eseminar_home.shtml';
			break
			//
			case "scm": 
			location.href = mediaFile+'ecosystem/scm/scm_eseminar_home.shtml';
			break
			//
			case "ep": 
			location.href = mediaFile+'ecosystem/ep/ep_eseminar_home.shtml';
			break
			//
			case "wm": 
			location.href = mediaFile+'webmarketing/wm_eseminar_home.shtml';
			break
			//
			case "communication": 
			location.href = mediaFile+'email/wc_eseminar_home.shtml';
			break
			//
			case "wc": 
			location.href = mediaFile+'webmarketing/wc_eseminar_home.shtml';
			break
			//
			case "hrm": 
			location.href = mediaFile+'ebusiness/hrm/hrm_eseminar_home.shtml';
			break						
			//
			case "cc": 			 
			location.href = mediaFile+'ecommerce/cc/cc_eseminar_home.shtml';
			break
			//
			case "business_productivity": 
			location.href = mediaFile+'ebusiness/business_prod_eseminars_home.shtml';
			break
			//
			case "fm": 
			location.href = mediaFile+'ebusiness/fm/fm_eseminar_home.shtml';
			break
			//
			case "md": 
			location.href = mediaFile+'ebusiness/md/md_eseminar_home.shtml';
			break
			//
			default:
			if (confirm('There is no E-Seminar available that relates specifically to this subject.\nClick OK if you would like to see a list of all available E-Seminars\nor cancel to remain on this page.')) {
				location.href = mediaFile+'smb_eseminars_home.shtml';
				break
				} else {
				break;
				//nothing
				}
			}
	}
}
//SMB Cube Get Started links
function getStarted(page) {
	var one = '/web/FR/solutions/smb/email/wc_getstarted_home.shtml';
	var two = '/web/FR/solutions/smb/webmarketing/wm_getstarted_home.shtml';
	var three = '/web/FR/solutions/smb/ecommerce/getstarted_ecommerce_home.shtml';
	var threeb = '/web/FR/solutions/smb/ecommerce/getstarted_ecommerce_home.shtml';
	var four = '/web/FR/solutions/smb/ebusiness/getstarted_home.shtml';
	var five = '/web/FR/solutions/smb/ecosystem/getstarted_ecosystem_home.shtml';	
	
	if (page!='') {
	//process page
	switch (page) {
   		case "communication": {//communication
		location.href = one;
		break
		}
		case "wc": {//web communication
		location.href = one;
		break
		}
		case "wm": {//web marketing
		location.href = two;
		break
		}
  		case "web_marketing": {//web marketing
		location.href = two;
		break
		}
		case "customer_interaction": {//customer interaction
		location.href = three;
		break
		}
  		case "cc": {//customer care
		location.href = three;
		break
		}
		case "ec": {//ecommerce
		location.href = threeb;
		break
		}
 		case "business_productivity": {//Business Productivity
		location.href = four;
		break
		}
		case "sfa": {//Sales Force Automation
		location.href = '/web/FR/solutions/smb/ebusiness/sfa/sfa_getstarted_home.shtml';
		break
		}
		case "md": {//Manufacturing & Distribution
		location.href = '/web/FR/solutions/smb/ebusiness/md/md_getstarted_home.shtml';
		break
		}
		case "fm": {//Financial Management
		location.href = '/web/FR/solutions/smb/ebusiness/fm/fm_getstarted_home.shtml';
		break
		}
	 	case "hrm": {//Human Resource Management
		location.href = '/web/FR/solutions/smb/ebusiness/hrm/hrm_getstarted_home.shtml';
		break
		}
	 	case "partner_efficiency": {//Partner Efficiency
		location.href = five;
		break
		}
		case "ep": {//eprocurement
		location.href = '/web/FR/solutions/smb/ecosystem/ep/ep_getstarted_home.shtml';
		break
		}
		case "scm": {//Supply Chain Management
		location.href = '/web/FR/solutions/smb/ecosystem/scm/scm_getstarted_home.shtml';
		break
		}
		default:
  			location.href = generic;
		}
	} else {
    	
	}
}
//-->

