
function openPopup(pageToLoad, winName, width, height, center, scroll) {
  xposition=0; yposition=0;

  if ((parseInt(navigator.appVersion) >= 4 ) && (center)) {
    xposition = (screen.width - width) / 2;
    yposition = (screen.height - height) / 2;
  }
  args = "width=" + width + "," + "height=" + height + ","
    + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=" + scroll + ","
    + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only

  winPCODemo = window.open(pageToLoad, winName, args);
}




function getPathSubcontractor(){


pathOne = new Array(2);
pathTwo = new Array(2);
pathThree = new Array(2);
pathFour = new Array(2);
pathFive = new Array(2);
pathSix = new Array(2);

randomLogo = Math.round(Math.random()*1);

pathOne[0] = "../../home/images/logo/logo1_1.gif";
pathOne[1] = "../../home/images/logo/logo1_1.gif";

pathTwo[0] = "../../home/images/logo/logo2_1.gif";
pathTwo[1] = "../../home/images/logo/logo2_1.gif";

pathThree[0] = "../../home/images/logo/logo3_1.gif";
pathThree[1] = "../../home/images/logo/logo3_1.gif";

pathFour[0] = "../../home/images/logo/logo4_1.gif";
pathFour[1] = "../../home/images/logo/logo4_1.gif";

pathFive[0] = "../../home/images/logo/logo5_1.gif";
pathFive[1] = "../../home/images/logo/logo5_1.gif";

pathSix[0] = "../../home/images/logo/logo6_1.gif";
pathSix[1] = "../../home/images/logo/logo6_1.gif";

path = window.location.href;
subcontractor = "subcontractor";
internetPath = "internet";
seminarPath = "subcontractor/seminar";
testimonialPath = "subcontractor/testimonial";
casePath = "subcontractor/case";
generalPath = "general";
generalPcoPath = "general/pco";
generalSeminarPath = "general/seminar";
generalTestPath = "general/testimonial";
generalCasePath = "general/case";
suppliersPath = "suppliers";
suppliersSemPath = "suppliers/seminar";
suppliersTestPath = "suppliers/testimonial";
reproPath = "reprographic";
reproRepPath = "reprographic/reprographic";
reproSeminarPath = "reprographic/seminar";
reproTestPath = "reprographic/testimonial";
seminars = "seminars";
aboutUs = "aboutus";
aboutUsHistory = "aboutus/history";
aboutUsManagement = "aboutus/management";
aboutUsCareers = "aboutus/careers";
contactUs = "contactus";
contactUsLocations = "contactus/locations";
news = "news";
newsPress = "news/press";
newsArchive = "news/archive";
newsMedia = "news/media";
partnersBusiness = "partners/business";
partners = "partners";
partnersInternet = "partners/internet";
partnersFirms = "partners/firms";
partnersResellers = "partners/resellers";
supportLogin = "support/login";
support = "support";
supportTraining = "support/training";
supportSystem = "support/system";
supportContact = "support/contact";
designers = "designers";
designersSeminar = "designers/seminar";
designersReprographic = "designers/reprographic";
designersTestimonial = "designers/testimonial";



result = path.match(subcontractor)
resultInternet = path.match(internetPath)
resultGeneral = path.match(generalPath)
resultSeminar = path.match(seminarPath)
resultTestimonial = path.match(testimonialPath)
resultCase = path.match(casePath)
resultPco = path.match(generalPcoPath)
resultGenSeminar = path.match(generalSeminarPath)
resultGenTest = path.match(generalTestPath)
resultGenCase = path.match(generalCasePath)
resultSuppliers = path.match(suppliersPath)
resultRepro = path.match(reproPath)
resultReproRepro = path.match(reproRepPath)
resultReproSeminar = path.match(reproSeminarPath)
resultReproTest = path.match(reproTestPath)
resultSupSemTest = path.match(suppliersSemPath)
resultSupTest = path.match(suppliersTestPath)
resultAboutUs = path.match(aboutUs);
resultSeminars = path.match(seminars);
resultAboutUsHistory = path.match(aboutUsHistory);
resultAboutUsManagement = path.match(aboutUsManagement);
resultAboutUsCareers = path.match(aboutUsCareers);
resultContactUs = path.match(contactUs);
resultContactUsLocations = path.match(contactUsLocations);
resultNews = path.match(news);
resultNewsPress = path.match(newsPress);
resultNewsArchive = path.match(newsArchive);
resultNewsMedia = path.match(newsMedia);
resultPartners = path.match(partners);
resultPartnersBusiness = path.match(partnersBusiness);
resultPartnersInternet = path.match(partnersInternet);
resultPartnersFirms = path.match(partnersFirms);
resultPartnersResellers = path.match(partnersResellers);
resultSupportLogin = path.match(supportLogin);
resultSupport = path.match(support);
resultSupportTraining = path.match(supportTraining);
resultSupportSystem = path.match(supportSystem);
resultSupportContact = path.match(supportContact);
resultDesigners = path.match(designers);
resultDesignersSeminar = path.match(designersSeminar);
resultDesignersReprographic = path.match(designersReprographic);
resultDesignersTestimonial = path.match(designersTestimonial);



if (path == "http://isqft.hsr.com/" || path == "http://isqft.hsr.com/index.html"){
   document.welcome.src = "../../home/images/welcome_logo.gif";
   document.logo1.src = pathOne[randomLogo];
   document.logo2.src = pathTwo[randomLogo];
   document.logo3.src = pathThree[randomLogo];
   document.logo4.src = pathFour[randomLogo];
   document.logo5.src = pathFive[randomLogo];
   document.logo6.src = pathSix[randomLogo];
}else{
   document.welcome.src = "../../home/images/spacer.gif";
}


if (result == "subcontractor"){
            document.welcome.src = "../../home/images/spacer.gif";
			document.subcontract.src = "../../home/images/nav/leftnav_subcontract_on.gif";
			}else{
			document.subcontract.src = "../../home/images/nav/leftnav_subcontract_off.gif";
}
if (resultInternet == "internet"){
			document.internet.src = "../images/nav/internet_plan_on.gif";
			}else{		
}
if (resultSeminar == "subcontractor/seminar"){
			document.seminar.src = "../images/nav/seminars_on.gif";
			}else{		
}
if (resultCase == "subcontractor/case"){
			document.casestudy.src = "../images/nav/casestudies_on.gif";
			}else{		
}
if (resultTestimonial == "subcontractor/testimonial"){
			document.testimonial.src = "../images/nav/testimonials_on.gif";
			}else{		
}
if (resultPco == "general/pco"){
			document.pco.src = "../images/nav/nav_pco_on.gif";
			}else{		
}
if (resultGenSeminar == "general/seminar"){
			document.seminar.src = "../images/nav/nav_gen_seminar_on.gif";
			}else{		
}
if (resultGenTest == "general/testimonial"){
			document.testimonials.src = "../images/nav/nav_gen_testimonial_on.gif";
			}else{		
}
if (resultGenCase == "general/case"){
			document.casestudy.src = "../images/nav/nav_gen_case_on.gif";
			}else{		
}
if (resultGeneral == "general"){
            document.welcome.src = "../../home/images/spacer.gif";
			document.general.src = "../../home/images/nav/leftnav_general_on.gif";
			}else{
			document.general.src = "../../home/images/nav/leftnav_general_off.gif";
}
if (resultSuppliers == "suppliers"){
            document.welcome.src = "../../home/images/spacer.gif";
			document.suppliers.src = "../../home/images/nav/leftnav_suppliers_on.gif";
			}else{
			document.suppliers.src = "../../home/images/nav/leftnav_suppliers_off.gif";
}
if (resultRepro == "reprographic"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultReproRepro == "reprographic/reprographic"){
			document.reprographicnav.src = "../images/nav/nav_rep_rep_on.gif";
			}else{		
}
if (resultReproSeminar == "reprographic/seminar"){
			document.seminar.src = "../images/nav/nav_rep_seminar_on.gif";
			}else{		
}
if (resultReproTest == "reprographic/testimonial"){
			document.testimonial.src = "../images/nav/nav_rep_testimonial_on.gif";
			}else{		
}
if (resultSupSemTest == "suppliers/seminar"){
			document.seminar.src = "../images/nav/seminars_on.gif";
			}else{		
}
if (resultSupTest == "suppliers/testimonial"){
			document.testimonial.src = "../images/nav/testimonials_on.gif";
			}else{		
}
if (resultSeminars == "seminars"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultAboutUs == "aboutus"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultAboutUsHistory == "aboutus/history"){
			document.history.src = "../images/nav/nav_aboutus_history_on.gif";
			}else{		
}
if (resultAboutUsManagement == "aboutus/management"){
			document.management.src = "../images/nav/nav_aboutus_management_on.gif";
			}else{		
}
if (resultAboutUsCareers == "aboutus/careers"){
			document.careers.src = "../images/nav/nav_aboutus_careers_on.gif";
			}else{		
}
if (resultContactUs == "contactus"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultContactUsLocations == "contactus/locations"){
			document.locations.src = "../images/nav/nav_contact_locations_on.gif";
			}else{		
}
if (resultNews == "news"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultNewsPress == "news/press"){
			document.press.src = "../images/nav/nav_news_press_on.gif";
			}else{		
}
if (resultNewsArchive == "news/archive"){
			document.archive.src = "../images/nav/nav_news_archive_on.gif";
			}else{		
}
if (resultNewsMedia == "news/media"){
			document.media.src = "../images/nav/nav_news_media_on.gif";
			}else{		
}
if (resultPartners == "partners"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultPartnersBusiness == "partners/business"){
			document.business.src = "../images/nav/nav_partners_business_on.gif";
			}else{		
}
if (resultPartnersInternet == "partners/internet"){
			document.internet.src = "../images/nav/nav_partners_internet_on.gif";
			}else{		
}
if (resultPartnersFirms == "partners/firms"){
			document.firms.src = "../images/nav/nav_partners_firms_on.gif";
			}else{		
}
if (resultPartnersResellers == "partners/resellers"){
			document.resellers.src = "../images/nav/nav_partners_resellers_on.gif";
			}else{		
}
if (resultSupport == "support"){
            document.welcome.src = "../images/spacer.gif";
}
if (resultSupportLogin == "support/login"){
			document.login.src = "../images/nav/nav_support_login_on.gif";
			}else{		
}
if (resultSupportTraining == "support/training"){
			document.training.src = "../images/nav/nav_support_training_on.gif";
			}else{		
}
if (resultSupportSystem == "support/system"){
			document.system.src = "../images/nav/nav_support_system_on.gif";
			}else{		
}
if (resultSupportContact == "support/contact"){
			document.contact.src = "../images/nav/nav_support_contact_on.gif";
			}else{		
}
if (resultRepro == "reprographic"){
            document.welcome.src = "../images/spacer.gif";
			document.reprographic.src = "../images/nav/leftnav_reprographic_on.gif";
}
if (resultDesigners == "designers"){
            document.welcome.src = "../images/spacer.gif";
			document.designer.src = "../images/nav/leftnav_designers_on.gif";
}
if (resultDesignersSeminar == "designers/seminar"){
			document.seminar.src = "../images/nav/nav_designer_seminar_on.gif";
			}else{		
}
if (resultDesignersReprographic == "designers/reprographic"){ 
			document.reprographicnav.src = "../images/nav/nav_designer_rep_on.gif";
			}else{		
}
if (resultDesignersTestimonial == "designers/testimonial"){
			document.testimonial.src = "../images/nav/nav_designer_testimonial_on.gif";
			}else{		
}





}
