// note popup only opens the first time a contentpage is hit 
function extString( cString, del_1, del_2 ) {
	var sub_1 = cString.split( del_1 );
	if ( sub_1 == cString )
		return -1;
	var substr2 = sub_1[1].split( del_2 );
	var len1 = sub_1[0].length + del_1.length;
	var len2 = substr2[0].length;
	return cString.substring( len1, len1+len2 );
}

function PopUpCheck() {

	if (document.cookie) {
		newcookie = document.cookie;
		cv = extString( newcookie, 'popup=', ';' );
		if (cv == "-1") {
   			var newcookie = "popup=true; path=\/;";
     			document.cookie = newcookie;			
      if(location.pathname.search(/\/com\//)>-1) {
				popUp( rootpath+ '/com/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/se\//)>-1) {
				popUp( rootpath+ '/se/Note.htm','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/au\//)>-1) {
				popUp(  rootpath+'/au/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/mx\//)>-1) {
				popUp(  rootpath+'/mx/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}		
      if(location.pathname.search(/\/uk\//)>-1) {
			popUp(  rootpath+'/uk/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/dk\//)>-1) {
			popUp( rootpath+ '/dk/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/at\//)>-1) {
			popUp(  rootpath+'/at/note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/br\//)>-1) {
			popUp( rootpath+ '/br/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/no\//)>-1) {
			popUp( rootpath+ '/no/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
      if(location.pathname.search(/\/gr\//)>-1) {
				popUp( rootpath+ '/gr/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
			     if(location.pathname.search(/\/fr\//)>-1) {
				popUp( rootpath+ '/fr/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
		}
	} else {
   		var newcookie = "popup=true; path=\/;";
   		document.cookie = newcookie;
     		if(location.pathname.search(/\/com\//)>-1) {
			popUp( rootpath+ '/com/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
	
		if(location.pathname.search(/\/au\//)>-1) {
			popUp( rootpath+ '/au/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/uk\//)>-1) {
			popUp( rootpath+ '/uk/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/se\//)>-1) {
			popUp( rootpath+ '/se/Note.htm','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/se\//)>-1) {
			popUp( rootpath+ '/se/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/mx\//)>-1) {
			popUp( rootpath+ '/mx/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/at\//)>-1) {
			popUp( rootpath+ '/at/note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/br\//)>-1) {
			popUp( rootpath+ '/br/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
	if(location.pathname.search(/\/no\//)>-1) {
			popUp( rootpath+ '/no/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
	if(location.pathname.search(/\/gr\//)>-1) {
			popUp( rootpath+ '/gr/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
		}
    if(location.pathname.search(/\/fr\//)>-1) {
			popUp( rootpath+ '/fr/Note.jsp','disclaimer' ,'width=487,height=420,scrollbars=auto');
			}
	}

}
PopUpCheck();